From: Ingo Molnar Date: Wed, 28 May 2025 08:09:14 +0000 (+0200) Subject: sched/smp: Use the SMP version of sched_update_asym_prefer_cpu() X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6c8d251621c131274fa05b46fc138f296b00f6e4;p=thirdparty%2Fkernel%2Fstable.git sched/smp: Use the SMP version of sched_update_asym_prefer_cpu() Simplify the scheduler by making CONFIG_SMP=y code in sched_update_asym_prefer_cpu() unconditional. Signed-off-by: Ingo Molnar Acked-by: Peter Zijlstra Cc: Dietmar Eggemann Cc: Juri Lelli Cc: Linus Torvalds Cc: Mel Gorman Cc: Sebastian Andrzej Siewior Cc: Shrikanth Hegde Cc: Steven Rostedt Cc: Valentin Schneider Cc: Vincent Guittot Link: https://lore.kernel.org/r/20250528080924.2273858-34-mingo@kernel.org --- diff --git a/kernel/sched/topology.c b/kernel/sched/topology.c index f2c10167f2bc..8e06b1d22e91 100644 --- a/kernel/sched/topology.c +++ b/kernel/sched/topology.c @@ -1323,7 +1323,6 @@ next: /* Update the "asym_prefer_cpu" when arch_asym_cpu_priority() changes. */ void sched_update_asym_prefer_cpu(int cpu, int old_prio, int new_prio) { -#ifdef CONFIG_SMP int asym_prefer_cpu = cpu; struct sched_domain *sd; @@ -1373,7 +1372,6 @@ void sched_update_asym_prefer_cpu(int cpu, int old_prio, int new_prio) WRITE_ONCE(sg->asym_prefer_cpu, asym_prefer_cpu); } -#endif /* CONFIG_SMP */ } /*