Skip to content

Commit 6c8d251

Browse files
author
Ingo Molnar
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 <[email protected]> Acked-by: Peter Zijlstra <[email protected]> Cc: Dietmar Eggemann <[email protected]> Cc: Juri Lelli <[email protected]> Cc: Linus Torvalds <[email protected]> Cc: Mel Gorman <[email protected]> Cc: Sebastian Andrzej Siewior <[email protected]> Cc: Shrikanth Hegde <[email protected]> Cc: Steven Rostedt <[email protected]> Cc: Valentin Schneider <[email protected]> Cc: Vincent Guittot <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 8a9246d commit 6c8d251

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

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)