From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from casper.infradead.org (casper.infradead.org [90.155.50.34]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 15AC7246770 for ; Mon, 8 Dec 2025 08:51:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=90.155.50.34 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765183869; cv=none; b=fI5mIpdv/mjtmTc1f1pyJe2qad/LBbbaF12G6r1qM9+X5S4rb6Sii61meNxHEl9VAOF0lsPq/vBlWv/lmX3yt81XWQlMUx6BHS1fbkRtXoaX6ue2shCSP3m/FuYhzUz+6/1ubjM4MOlJrxbas/jHB5S1s72smWIzqajT+svlt5U= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765183869; c=relaxed/simple; bh=72YR9jHtQuu6aX+vFdu5cexuAcvbVB0RdjKNP9tcQb4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=CM2x9OoCDUYXf6d8xqzEHb0A8yD8+9ZwRC99F3LZDUtVYcy1xwsy/5Cciqd0J+v3OK2zOZvK/+DB8YaIk6nM0/Wuyx5FZMYZCjuEgian1IqLd+G2CNI9TzrhZ58CUPD0TUwrE7L7inbqc4QCbXKWsMdHx+IGkzw7GL1rAIhFDkw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=infradead.org; spf=none smtp.mailfrom=infradead.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b=YuymuwuT; arc=none smtp.client-ip=90.155.50.34 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=infradead.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=infradead.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="YuymuwuT" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=IxndpDg+VqRSB8VOAo12z78HbokZAyXFxd2wBx9ZUL8=; b=YuymuwuTs5ZBV4iuR7DfXo4zyU itzScvTuanrc4nH1rTiUncIKC62NVIvLVqDAVYcyhiU1LDqzcRc00c5bPjLYT8sJHRIDowAsKXqFA nhXCWpMa3UVo8lJ3MmkIKcPcdH/G0pb24LQMPyFF/qb3JwLn26MW0CALpksNpMPeIpfWzmxt4UCTS /rPGRh8mT9tkXLvojIIMrwYsSZQm+/yKIpkXLPYZBxGdiz6dhsJ8q8A1trOylwv37H9v5ZOOwmoBu EdEZqAPksXXzs3/0+mawC0/ZqQUUTLStJM2aZiJqRGXnYDLQajM95dY7d6+s+/EUjn8eMnByikv3x B8gDdRDA==; Received: from 77-249-17-252.cable.dynamic.v4.ziggo.nl ([77.249.17.252] helo=noisy.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.98.2 #2 (Red Hat Linux)) id 1vSWxP-00000009YLP-3WYN; Mon, 08 Dec 2025 08:50:59 +0000 Received: by noisy.programming.kicks-ass.net (Postfix, from userid 1000) id 7B1C030301A; Mon, 08 Dec 2025 09:50:59 +0100 (CET) Date: Mon, 8 Dec 2025 09:50:59 +0100 From: Peter Zijlstra To: "Yury Norov (NVIDIA)" Cc: Ingo Molnar , Juri Lelli , Vincent Guittot , Dietmar Eggemann , Steven Rostedt , Ben Segall , Mel Gorman , Valentin Schneider , linux-kernel@vger.kernel.org, Markus Elfring , Madadi Vineeth Reddy , K Prateek Nayak Subject: Re: [PATCH RESEND] sched: fair: drop useless cpumask_empty() in find_energy_efficient_cpu() Message-ID: <20251208085059.GB3707891@noisy.programming.kicks-ass.net> References: <20251207040543.407695-1-yury.norov@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20251207040543.407695-1-yury.norov@gmail.com> On Sat, Dec 06, 2025 at 11:05:42PM -0500, Yury Norov (NVIDIA) wrote: > cpumask_empty() call is O(N) and useless because the previous > cpumask_and() returns false for empty 'cpus'. Drop it. > > CC: Markus Elfring > Reviewed-by: Madadi Vineeth Reddy > Reviewed-by: K Prateek Nayak > Reviewed-by: Vincent Guittot > Signed-off-by: Yury Norov (NVIDIA) Picked it (and the other two) up for processing after rc1.