Skip to content

Commit 6c8d251

Browse files
committed
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
1 parent 8a9246d commit 6c8d251

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

kernel/sched/topology.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1323,7 +1323,6 @@ static void init_sched_groups_capacity(int cpu, struct sched_domain *sd)
13231323
/* Update the "asym_prefer_cpu" when arch_asym_cpu_priority() changes. */
13241324
void sched_update_asym_prefer_cpu(int cpu, int old_prio, int new_prio)
13251325
{
1326-
#ifdef CONFIG_SMP
13271326
int asym_prefer_cpu = cpu;
13281327
struct sched_domain *sd;
13291328

@@ -1373,7 +1372,6 @@ void sched_update_asym_prefer_cpu(int cpu, int old_prio, int new_prio)
13731372

13741373
WRITE_ONCE(sg->asym_prefer_cpu, asym_prefer_cpu);
13751374
}
1376-
#endif /* CONFIG_SMP */
13771375
}
13781376

13791377
/*

0 commit comments

Comments
 (0)