From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id E327FC433EF for ; Fri, 11 Feb 2022 09:46:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348682AbiBKJqV (ORCPT ); Fri, 11 Feb 2022 04:46:21 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:32796 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343993AbiBKJqT (ORCPT ); Fri, 11 Feb 2022 04:46:19 -0500 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 3D81D10A1 for ; Fri, 11 Feb 2022 01:46:19 -0800 (PST) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id DB012D6E; Fri, 11 Feb 2022 01:46:18 -0800 (PST) Received: from bogus (unknown [10.57.3.35]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 343323F73B; Fri, 11 Feb 2022 01:46:15 -0800 (PST) Date: Fri, 11 Feb 2022 09:45:27 +0000 From: Sudeep Holla To: Yury Norov Cc: Andy Shevchenko , Rasmus Villemoes , Andrew Morton , =?utf-8?B?TWljaGHFgiBNaXJvc8WCYXc=?= , Greg Kroah-Hartman , Peter Zijlstra , David Laight , Sudeep Holla , Joe Perches , Dennis Zhou , Emil Renner Berthing , Nicholas Piggin , Matti Vaittinen , Alexey Klimov , linux-kernel@vger.kernel.org, Mark Rutland , Lorenzo Pieralisi , linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH 40/49] firmware: pcsi: replace cpumask_weight with cpumask_weight_eq Message-ID: <20220211094527.kmcnvz7iyiwkxtbc@bogus> References: <20220210224933.379149-1-yury.norov@gmail.com> <20220210224933.379149-41-yury.norov@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220210224933.379149-41-yury.norov@gmail.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Feb 10, 2022 at 02:49:24PM -0800, Yury Norov wrote: > down_and_up_cpus() calls cpumask_weight() to compare the weight of > cpumask with a given number. We can do it more efficiently with > cpumask_weight_{eq, ...} because conditional cpumask_weight may stop > traversing the cpumask earlier, as soon as condition is (or can't be) met. > Nit: s/pcsi/psci/ in $subject. With that fixed, Reviewed-by: Sudeep Holla -- Regards, Sudeep