mirror of
https://github.com/torvalds/linux.git
synced 2025-08-15 14:11:42 +02:00
sched/smp: Use the SMP version of idle_thread_set_boot_cpu()
Simplify the scheduler by making the CONFIG_SMP=y version of idle_thread_set_boot_cpu() unconditional. Note that idle_thread_set_boot_cpu() is already conditional on CONFIG_GENERIC_SMP_IDLE_THREAD, which most architectures select unconditionally on both UP and SMP kernels. 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-28-mingo@kernel.org
This commit is contained in:
parent
1f25730e5a
commit
74063c1755
2 changed files with 0 additions and 6 deletions
|
@ -8582,9 +8582,7 @@ void __init sched_init(void)
|
||||||
|
|
||||||
calc_load_update = jiffies + LOAD_FREQ;
|
calc_load_update = jiffies + LOAD_FREQ;
|
||||||
|
|
||||||
#ifdef CONFIG_SMP
|
|
||||||
idle_thread_set_boot_cpu();
|
idle_thread_set_boot_cpu();
|
||||||
#endif
|
|
||||||
|
|
||||||
balance_push_set(smp_processor_id(), false);
|
balance_push_set(smp_processor_id(), false);
|
||||||
init_sched_fair_class();
|
init_sched_fair_class();
|
||||||
|
|
|
@ -18,8 +18,6 @@
|
||||||
|
|
||||||
#include "smpboot.h"
|
#include "smpboot.h"
|
||||||
|
|
||||||
#ifdef CONFIG_SMP
|
|
||||||
|
|
||||||
#ifdef CONFIG_GENERIC_SMP_IDLE_THREAD
|
#ifdef CONFIG_GENERIC_SMP_IDLE_THREAD
|
||||||
/*
|
/*
|
||||||
* For the hotplug case we keep the task structs around and reuse
|
* For the hotplug case we keep the task structs around and reuse
|
||||||
|
@ -76,8 +74,6 @@ void __init idle_threads_init(void)
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif /* #ifdef CONFIG_SMP */
|
|
||||||
|
|
||||||
static LIST_HEAD(hotplug_threads);
|
static LIST_HEAD(hotplug_threads);
|
||||||
static DEFINE_MUTEX(smpboot_threads_lock);
|
static DEFINE_MUTEX(smpboot_threads_lock);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue