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 8D118C433FE for ; Fri, 11 Feb 2022 05:20:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234098AbiBKFUM (ORCPT ); Fri, 11 Feb 2022 00:20:12 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:52654 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232414AbiBKFUM (ORCPT ); Fri, 11 Feb 2022 00:20:12 -0500 Received: from mail-io1-xd2f.google.com (mail-io1-xd2f.google.com [IPv6:2607:f8b0:4864:20::d2f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7970210C4; Thu, 10 Feb 2022 21:20:12 -0800 (PST) Received: by mail-io1-xd2f.google.com with SMTP id 9so10161424iou.2; Thu, 10 Feb 2022 21:20:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=RnKxUHtnbhzwXGNKdtmQDoXhiCrf6JjPF2F+d5F+Qr8=; b=oJ4RWzm3vjpJ/gEQhojKVN4XU2pIU/Ql/Gv/lB4dlX9cchxTNE04H4p1hqu7A1I12w xhv6HI48PbdFMeqFzQHRk4xVPyRI1X3bCZqG7XhH1VU7wKVl7NwDjRqxB8RFshZAOBN+ p0XmQa28u+pWn8T1Kwt9wwrKNKA4Gu0/Sp0AQ5PfR3N1rBGXx9nvxCulh93v9PYF5qiI S/AE4P77fJ/5uKzSkLDsTP6P0se+PrOCwrdgyKZ5/XTVfHXUhXOyMrrSNPRx88XzydRv 9H4opvj3h+lXNS+xK/Oig6sx2bq1PYjc8KCp9RK+lJY2NUOF8Cknzvn1xaxRDxMVwPOl LevA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=RnKxUHtnbhzwXGNKdtmQDoXhiCrf6JjPF2F+d5F+Qr8=; b=UOUKemOnnR5ignBUyhoH2mGgHo7bjLyTOeH+iAu7cibHL4mVHs4D7qHtFGVGG9oiyX eBhlRpWhbusUqxHshr905YEHymZlyBBCHJnpRwTRwOC1GNo9mpQVN5GcTrwhoXOTarTH ttVLP+Bxv4sEU2lzWt6+DrAHsf/xXfUtMHPvTXjfuyQoT/LQtAjYpGU5sPYaHK7sYxLQ dEyNp4XQ9BH8ppXlQzBQX35i81A4G8JwWRkEbTcCvZexK88JnI6MnpReKXOe0fIF2JNe Ee6AmpjZlGTno2mY5RYgB0NSBHsZl8hOzEBpYOMj1y6VSolBRemC1MRw61+RbU+5R3UA cv1A== X-Gm-Message-State: AOAM532JltFz6PN2fhgdtbbvdZr04GoPvalyQvqdy8om1NwemfDMPlHs wFN82KdVoxCs/B+yq22aIbM= X-Google-Smtp-Source: ABdhPJxpl+RJjMaPZAxbSgQnCb9NcO2odpTzUjPcv6pia2XEKvvx1DOyhbvGA/Fc2LfhgNxqxHyD0g== X-Received: by 2002:a02:b0c3:: with SMTP id w3mr6064874jah.1.1644556811791; Thu, 10 Feb 2022 21:20:11 -0800 (PST) Received: from localhost ([12.28.44.171]) by smtp.gmail.com with ESMTPSA id s9sm42687ilv.50.2022.02.10.21.20.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Feb 2022 21:20:11 -0800 (PST) Date: Thu, 10 Feb 2022 21:17:59 -0800 From: Yury Norov To: Viresh Kumar Cc: Andy Shevchenko , Rasmus Villemoes , Andrew Morton , =?utf-8?B?TWljaGHFgiBNaXJvc8WCYXc=?= , Greg Kroah-Hartman , Peter Zijlstra , David Laight , Joe Perches , Dennis Zhou , Emil Renner Berthing , Nicholas Piggin , Matti Vaittinen , Alexey Klimov , linux-kernel@vger.kernel.org, Andy Gross , Bjorn Andersson , "Rafael J. Wysocki" , Sudeep Holla , Cristian Marussi , linux-arm-msm@vger.kernel.org, linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH 17/49] cpufreq: replace cpumask_weight with cpumask_empty where appropriate Message-ID: References: <20220210224933.379149-1-yury.norov@gmail.com> <20220210224933.379149-18-yury.norov@gmail.com> <20220211043057.t6ukpdtakcht3frc@vireshk-i7> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220211043057.t6ukpdtakcht3frc@vireshk-i7> Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org On Fri, Feb 11, 2022 at 10:00:57AM +0530, Viresh Kumar wrote: > On 10-02-22, 14:49, Yury Norov wrote: > > drivers/cpufreq calls cpumask_weight() to check if any bit of a given > > cpumask is set. We can do it more efficiently with cpumask_empty() because > > cpumask_empty() stops traversing the cpumask as soon as it finds first set > > bit, while cpumask_weight() counts all bits unconditionally. > > > > Signed-off-by: Yury Norov > > Reviewed-by: Sudeep Holla (for SCMI cpufreq driver) > > --- > > drivers/cpufreq/qcom-cpufreq-hw.c | 2 +- > > drivers/cpufreq/scmi-cpufreq.c | 2 +- > > 2 files changed, 2 insertions(+), 2 deletions(-) > > I already applied it yesterday and replied to you as well. Did I miss > something ? It appeared in next today after I prepared this series, that's why it slipped through. Sorry for that. Please ignore this patch. Thanks, Yury