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 B52EC306B00 for ; Tue, 2 Dec 2025 08:13:19 +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=1764663199; cv=none; b=i6AGmOrG5TtYAdXqAx8GLq0Fswp0rMmLXf2RECVBiRCJppK1B+IkjoeVfboqd9ljTYJdnFUEkg/RATkFsKxF4gDrUiFXleqzucXEoLi4xvBNGACIg9O/Rz4aWNbxcym7w7lchxuwlmf9Z0Lrru6vgJMhgF/1R+KvlLWo167RWx4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764663199; c=relaxed/simple; bh=GJK52I3ZDqfOHHpq8GlgfXj7ovWYNgBEeHS/B4jI/2A=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=fRtV5Dzt3CdT59WjWNZzdKcHnO6xhsBxfI8C73CqW9T1E9G1XNzmjLjL/LmKW0RkstSwZmPKmc/XUlOWQiTUm9SFfzbNl9zh8zes6peLv/G0v+9CRtWjc/g5zS+Q4DiYeMc/fwyeBexJkgnPtNQnCuOcNB0HbMay95TwXoJlBFM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=iXo1Qw0x; 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="iXo1Qw0x" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1B202C116D0; Tue, 2 Dec 2025 08:13:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1764663199; bh=GJK52I3ZDqfOHHpq8GlgfXj7ovWYNgBEeHS/B4jI/2A=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=iXo1Qw0xraSCvCZwl8V33AnvpooZKCFc5iSWQpd9uSsmpaiQ4DUdgFJ4ABdxYp8D6 tdFMtaHxdMb3qR7o28MOZlVRoTR6te0i68K00dhXojaXBP98/6RFyMJczzeYj0i3zi buKjfnI+fMJjzUOkgnVy2ofAlMJtaNmaM6C3niH+MP23RVw+XQYKmTYRiWShx3PU8Y fE/drhpRUgEmd/xjH0d58ZbEAKIkzTyscJ8Iph284MoHzX+nIk2ivgFcyFxwj8xyMH j1sYDiUN5lAXJW0SOn93OmIK4CItKOQqKZ+anEEPw4keT7jskmUqg6QW+UJQO3a3px XVMA0MWv+AlYA== From: Ingo Molnar To: linux-kernel@vger.kernel.org Cc: Peter Zijlstra , Frederic Weisbecker , Shrikanth Hegde , Juri Lelli , Dietmar Eggemann , Valentin Schneider , Vincent Guittot , Linus Torvalds , Mel Gorman , Steven Rostedt , Thomas Gleixner , Ingo Molnar , Frederic Weisbecker Subject: [PATCH 2/3] sched/fair: Rename the 'has_blocked' parameter in update_blocked_load_status() to 'has_blocked_load' Date: Tue, 2 Dec 2025 09:13:03 +0100 Message-ID: <20251202081304.3103393-3-mingo@kernel.org> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20251202081304.3103393-1-mingo@kernel.org> References: <20251202081304.3103393-1-mingo@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit There's three separate, independent pieces of logic in the scheduler that are named 'has_blocked': 1) nohz.has_blocked, 2) rq->has_blocked_load - both of these relate to NOHZ balancing, 3) and cfs_rq_has_blocked(), which operates on SMP load-balancing averages. To reduce confusion, split these 3 shared uses of 'has_blocked' name patterns into 3 distinct and greppable patterns: 1) nohz.has_blocked related functions and variables use 'has_blocked', 2) rq->has_blocked_load related functions and variables use 'has_blocked_load', 3) and cfs_rq_has_blocked() uses 'has_blocked_load_avg'. This patch implements (2) and renames the 'has_blocked' parameter in update_blocked_load_status() to 'has_blocked_load'. No change in functionality. Cc: Shrikanth Hegde Cc: Peter Zijlstra Cc: Frederic Weisbecker Signed-off-by: Ingo Molnar --- kernel/sched/fair.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index 3f21b77b59ce..a8a67d25873c 100644 --- a/kernel/sched/fair.c +++ b/kernel/sched/fair.c @@ -9800,16 +9800,16 @@ static inline void update_blocked_load_tick(struct rq *rq) WRITE_ONCE(rq->last_blocked_load_update_tick, jiffies); } -static inline void update_blocked_load_status(struct rq *rq, bool has_blocked) +static inline void update_blocked_load_status(struct rq *rq, bool has_blocked_load) { - if (!has_blocked) + if (!has_blocked_load) rq->has_blocked_load = 0; } #else /* !CONFIG_NO_HZ_COMMON: */ static inline bool cfs_rq_has_blocked(struct cfs_rq *cfs_rq) { return false; } static inline bool others_have_blocked(struct rq *rq) { return false; } static inline void update_blocked_load_tick(struct rq *rq) {} -static inline void update_blocked_load_status(struct rq *rq, bool has_blocked) {} +static inline void update_blocked_load_status(struct rq *rq, bool has_blocked_load) {} #endif /* !CONFIG_NO_HZ_COMMON */ static bool __update_blocked_others(struct rq *rq, bool *done) -- 2.51.0