public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: alexs@kernel.org
Cc: linux-kernel@vger.kernel.org, Alex Shi <alexs@kernel.org>,
	Peter Zijlstra <peterz@infradead.org>,
	Waiman Long <longman@redhat.com>,
	Frederic Weisbecker <frederic@kernel.org>
Subject: [PATCH 2/4] sched/isolation: clean up housekeeping_cpu
Date: Thu, 10 Apr 2025 17:24:17 +0800	[thread overview]
Message-ID: <20250410092423.9831-2-alexs@kernel.org> (raw)
In-Reply-To: <20250410092423.9831-1-alexs@kernel.org>

From: Alex Shi <alexs@kernel.org>

housekeeping_test_cpu will check 'housekeeping_overridden' again in
itself so we don't need do it again outside. just call
housekeeping_test_cpu is fine.

Signed-off-by: Alex Shi <alexs@kernel.org>
Cc: Peter Zijlstra  <peterz@infradead.org>
Cc: Waiman Long <longman@redhat.com>
Cc: Frederic Weisbecker <frederic@kernel.org>
---
 include/linux/sched/isolation.h | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/include/linux/sched/isolation.h b/include/linux/sched/isolation.h
index d8501f4709b5..231bc5766f76 100644
--- a/include/linux/sched/isolation.h
+++ b/include/linux/sched/isolation.h
@@ -63,11 +63,7 @@ static inline void housekeeping_init(void) { }
 
 static inline bool housekeeping_cpu(int cpu, enum hk_type type)
 {
-#ifdef CONFIG_CPU_ISOLATION
-	if (static_branch_unlikely(&housekeeping_overridden))
-		return housekeeping_test_cpu(cpu, type);
-#endif
-	return true;
+	return housekeeping_test_cpu(cpu, type);
 }
 
 static inline bool cpu_is_isolated(int cpu)
-- 
2.47.1


  reply	other threads:[~2025-04-10  9:24 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-04-10  9:24 [PATCH 1/4] tick/nohz: remove function tick_nohz_full_add_cpus_to alexs
2025-04-10  9:24 ` alexs [this message]
2025-04-10 13:20   ` [PATCH 2/4] sched/isolation: clean up housekeeping_cpu Frederic Weisbecker
2025-04-11  0:58     ` Alex Shi
2025-04-11 11:08       ` Frederic Weisbecker
2025-04-10  9:24 ` [PATCH 3/4] sched/isolation: merge housekeeping_cpu() and housekeeping_test_cpu() alexs
2025-04-10  9:24 ` [PATCH 4/4] sched/isolation: don't alloc twice for housekeeping.cpumasks alexs
2025-05-13 14:49 ` [tip: timers/core] tick/nohz: Remove unused tick_nohz_full_add_cpus_to() tip-bot2 for Alex Shi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20250410092423.9831-2-alexs@kernel.org \
    --to=alexs@kernel.org \
    --cc=frederic@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=longman@redhat.com \
    --cc=peterz@infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox