Skip to content

Commit b493c34

Browse files
akpm00torvalds
authored andcommitted
kernel/stop_machine.c: remove CONFIG_SMP dependencies
stop_machine.o is only built if CONFIG_SMP=y, so this ifdef always evaluates to true. [[email protected]: remove now-unneeded ifdef] Reported-by: Valentin Rothberg <[email protected]> Cc: Chris Wilson <[email protected]> Cc: Ingo Molnar <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
1 parent b2113a4 commit b493c34

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

kernel/stop_machine.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -529,8 +529,6 @@ static int __init cpu_stop_init(void)
529529
}
530530
early_initcall(cpu_stop_init);
531531

532-
#if defined(CONFIG_SMP) || defined(CONFIG_HOTPLUG_CPU)
533-
534532
static int __stop_machine(cpu_stop_fn_t fn, void *data, const struct cpumask *cpus)
535533
{
536534
struct multi_stop_data msdata = {
@@ -628,5 +626,3 @@ int stop_machine_from_inactive_cpu(cpu_stop_fn_t fn, void *data,
628626
mutex_unlock(&stop_cpus_mutex);
629627
return ret ?: done.ret;
630628
}
631-
632-
#endif /* CONFIG_SMP || CONFIG_HOTPLUG_CPU */

0 commit comments

Comments
 (0)