From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 5D266E574 for ; Mon, 6 Jan 2025 18:49:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736189347; cv=none; b=SLRpTQbbR/cZCUt04HU5yMYfx6qzCv2OxD7ixkil67jnMzs0s8G/9ZKNFv/xex7Jk4T0BtiBnz3Y6H0ctUhD9SYw4uI5rMMgxLtk+fBhdOSilKFHbrAwCWMexaEuiFiM02E7iPrYFsUT6Pn5JtSSa+AQd4s5IEI1JS8SIQ4XBoM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736189347; c=relaxed/simple; bh=gkedqPM9knb51DQylzpBCDglki8BE7gzLTXCcm1CYe4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=cj3ejn/RDe41LXoTaGyHyCL9e7hsOu6uME3NlOF11mrm9UDkZQsfV5opKOlo81GMcFo3hggGKgLuJWBEZDYUowhfXEqqB4C3023X7h4BJTGKizQoFyoSgKDw6H8jwykIPCs9NKUs1JVYApN4TZbH1EJLdjQhQ59RxhrqwwlIMKc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=HtmNCfFC; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="HtmNCfFC" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 98593C4CED2; Mon, 6 Jan 2025 18:49:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1736189346; bh=gkedqPM9knb51DQylzpBCDglki8BE7gzLTXCcm1CYe4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=HtmNCfFCHDPN3INH1Ou9uzg5Mw3Ok4TaN/HtBZFBVwqFLNbB3FqFtwUl9dQWogA/8 QICpNMvjr05G2tpph1nnZRJmFzMtRQ3GIqkfCQc0iKIQm3g2P7/EwI/kDOHwOmQxRQ kOnfAGXi3mPI7CDPjUap//7lxnm6wLmR5wFYwHekr5f/2uYgcdojy8JSyu5f7qbY0O /OFnO4buV1PqrndSyirLVoVhWp3U8xqKxWgomaK/nokABpDOuniAez9z3iyhsLAKUb QV3pOaldRRU+eyMRagY30pTbVsMe81evUNQZcokePDTjnz6QdrTTVY/N4wOBxyKCT/ 1d8JdUduYK7Ag== Date: Mon, 6 Jan 2025 08:49:05 -1000 From: Tejun Heo To: Andrea Righi Cc: David Vernet , Changwoo Min , Yury Norov , linux-kernel@vger.kernel.org Subject: Re: [PATCH] sched_ext: idle: small CPU iteration refactoring Message-ID: References: <20250104090009.331193-1-arighi@nvidia.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: <20250104090009.331193-1-arighi@nvidia.com> On Sat, Jan 04, 2025 at 10:00:09AM +0100, Andrea Righi wrote: > Replace the loop to check if all SMT CPUs are idle with > cpumask_subset(). This simplifies the code and slightly improves > efficiency, while preserving the original behavior. > > Note that idle_masks.smt handling remains racy, which is acceptable as > it serves as an optimization and is self-correcting. > > Suggested-by: Yury Norov > Signed-off-by: Andrea Righi Applied to sched_ext/for-6.14. Thanks. -- tejun