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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 0002DC433F5 for ; Fri, 11 Feb 2022 05:21:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=/ABLsgisVuzkXw61iH4lhrbwx+HRtinQSkn2Ppj1gGU=; b=cIg2Dvm1u4qIWm 9KDZcdoKUNFu1xij6mAayPGplcF3pKQSa2bgSHik1/dVS/bHM+NzMCORU94Bfjz4anqDwSA67kjLb NkN5ztE57Xp3/8iBlaA73qmSAK3NmnOvYfGs8LKvxgyP6JWq9p4x5/nz6Bjv/L2QfHwUmSAdnxWyA tps0hlPmhU+mOiOYxMts0NUiInsYJG17ScIA1K2Ufov1VLNMlx7pO4eD7/hwaKr+nu1Uk5ceGnPoy gZ/i/X4rXyc8LBxI/JcQcXY2g+G/N4Uw712u7lC3oNltztTQmH90L/+8SveUW+1VPMjQ73P6+OSiU UPC1jUK/sDVe7ss+q8hw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nIOLw-005rX0-Vk; Fri, 11 Feb 2022 05:20:17 +0000 Received: from mail-io1-xd2e.google.com ([2607:f8b0:4864:20::d2e]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nIOLt-005rVN-D6 for linux-arm-kernel@lists.infradead.org; Fri, 11 Feb 2022 05:20:14 +0000 Received: by mail-io1-xd2e.google.com with SMTP id y84so10210430iof.0 for ; 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=uM31efl0khtHGOT92kQflmCOlZw/DmoXGSFyIWAnfU8x270oMGStzMsjEQMEo2RhUD P2EOm3jKVavwXcGu3YhwZoZZyLckkwCEcrpoyr0t/POCJnZIvwhJ4yuHoJ1WLNhKeQLx F19Za1uGsZsq58ycognBAbdUVoDqc2MQoiJDu5qPOuFPx2WWkTB0BrKZFImBL4/cq67n A3xwFXNPAuFfHjChG7QOFCMSeDzz/c4zQyLJUz3+usK5wIG59LW6QQ2tXTtc0Q3qp8VI /dh/TxpMansof/9cTlnyUaJkgW+mpoHLFZ0hp5Yzt3y5awIRi6766YKQPgE8d/W+NOgr 9YjQ== X-Gm-Message-State: AOAM532RJWBX+sbbMIlV+BRSiOgLWe3hGXBOSaoZke9AMcFdYdi/Oios uhJbVDXekPikxP4++h1sWbc= 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-Disposition: inline In-Reply-To: <20220211043057.t6ukpdtakcht3frc@vireshk-i7> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220210_212013_484563_F7AF9733 X-CRM114-Status: GOOD ( 16.02 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel