summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIngo Molnar <mingo@kernel.org>2025-05-28 10:09:14 +0200
committerIngo Molnar <mingo@kernel.org>2025-06-13 08:47:21 +0200
commit6c8d251621c131274fa05b46fc138f296b00f6e4 (patch)
treeee91ee965e4e0f755dd6490552b6a74ddcd9709d
parent8a9246ddc16c0feaa3b09ca9d2e30fbfa88d09de (diff)
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 <mingo@kernel.org> Acked-by: Peter Zijlstra <peterz@infradead.org> Cc: Dietmar Eggemann <dietmar.eggemann@arm.com> Cc: Juri Lelli <juri.lelli@redhat.com> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Mel Gorman <mgorman@suse.de> Cc: Sebastian Andrzej Siewior <bigeasy@linutronix.de> Cc: Shrikanth Hegde <sshegde@linux.ibm.com> Cc: Steven Rostedt <rostedt@goodmis.org> Cc: Valentin Schneider <vschneid@redhat.com> Cc: Vincent Guittot <vincent.guittot@linaro.org> Link: https://lore.kernel.org/r/20250528080924.2273858-34-mingo@kernel.org
-rw-r--r--kernel/sched/topology.c2
1 files changed, 0 insertions, 2 deletions
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 */
}
/*