]> git.ipfire.org Git - thirdparty/linux.git/commit
sched/isolation: Remove HK_TYPE_TICK test from cpu_is_isolated()
authorFrederic Weisbecker <frederic@kernel.org>
Mon, 2 Jun 2025 10:32:32 +0000 (12:32 +0200)
committerFrederic Weisbecker <frederic@kernel.org>
Tue, 3 Feb 2026 14:23:34 +0000 (15:23 +0100)
commit1c3329df409b9b50517bf4a1399ed793d277a20c
tree077b8a36df282db2be1e7f0b2eb6c100fec934aa
parent6440966067dc078f7b46942b3e2cb5d1035fc0b9
sched/isolation: Remove HK_TYPE_TICK test from cpu_is_isolated()

It doesn't make sense to use nohz_full without also isolating the
related CPUs from the domain topology, either through the use of
isolcpus= or cpuset isolated partitions.

And now HK_TYPE_DOMAIN includes all kinds of domain isolated CPUs.

This means that HK_TYPE_DOMAIN should always be a subset of
HK_TYPE_KERNEL_NOISE (of which HK_TYPE_TICK is only an alias).

Therefore if a CPU is not HK_TYPE_DOMAIN, it shouldn't be
HK_TYPE_KERNEL_NOISE either. Testing the former is then enough.

Simplify cpu_is_isolated() accordingly.

Signed-off-by: Frederic Weisbecker <frederic@kernel.org>
Acked-by: Waiman Long <longman@redhat.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Marco Crivellari <marco.crivellari@suse.com>
Cc: Michal Hocko <mhocko@suse.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Tejun Heo <tj@kernel.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Vlastimil Babka <vbabka@suse.cz>
Cc: Waiman Long <longman@redhat.com>
include/linux/sched/isolation.h