Commit 6c8d2516 authored by Ingo Molnar's avatar Ingo Molnar
Browse files

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: default avatarIngo Molnar <mingo@kernel.org>
Acked-by: default avatarPeter 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
parent 8a9246dd
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -1323,7 +1323,6 @@ static void init_sched_groups_capacity(int cpu, struct sched_domain *sd)
/* 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 */
}

/*