]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
timers/migration: Remove superfluous cpuset isolation test
authorFrederic Weisbecker <frederic@kernel.org>
Mon, 22 Dec 2025 15:22:56 +0000 (16:22 +0100)
committerFrederic Weisbecker <frederic@kernel.org>
Tue, 3 Feb 2026 14:23:34 +0000 (15:23 +0100)
Cpuset isolated partitions are now included in HK_TYPE_DOMAIN. Testing
if a CPU is part of an isolated partition alone is now useless.

Remove the superflous test.

Signed-off-by: Frederic Weisbecker <frederic@kernel.org>
Reviewed-by: Waiman Long <longman@redhat.com>
kernel/time/timer_migration.c

index 3879575a4975355aec2c2cf36f1e3aef5043ac97..6da9cd562b2079c78f33feb98447ff365f35d72d 100644 (file)
@@ -466,9 +466,8 @@ static inline bool tmigr_is_isolated(int cpu)
 {
        if (!static_branch_unlikely(&tmigr_exclude_isolated))
                return false;
-       return (!housekeeping_cpu(cpu, HK_TYPE_DOMAIN) ||
-               cpuset_cpu_is_isolated(cpu)) &&
-              housekeeping_cpu(cpu, HK_TYPE_KERNEL_NOISE);
+       return (!housekeeping_cpu(cpu, HK_TYPE_DOMAIN) &&
+               housekeeping_cpu(cpu, HK_TYPE_KERNEL_NOISE));
 }
 
 /*