path: root/init
diff options
authorChris Wilson <>2015-12-11 13:40:46 -0800
committerLinus Torvalds <>2015-12-12 10:15:34 -0800
commit86fffe4a61dd972d5a4e23260d530be6da02f614 (patch)
tree60727aa79cbed733cee2343417bcba5bd6b0d6c4 /init
parent98e89cf02aed11166698dd53c6f14865613babb3 (diff)
kernel: remove stop_machine() Kconfig dependency
Currently the full stop_machine() routine is only enabled on SMP if module unloading is enabled, or if the CPUs are hotpluggable. This leads to configurations where stop_machine() is broken as it will then only run the callback on the local CPU with irqs disabled, and not stop the other CPUs or run the callback on them. For example, this breaks MTRR setup on x86 in certain configs since ea8596bb2d8d379 ("kprobes/x86: Remove unused text_poke_smp() and text_poke_smp_batch() functions") as the MTRR is only established on the boot CPU. This patch removes the Kconfig option for STOP_MACHINE and uses the SMP and HOTPLUG_CPU config options to compile the correct stop_machine() for the architecture, removing the false dependency on MODULE_UNLOAD in the process. Link: References: Signed-off-by: Chris Wilson <> Acked-by: Ingo Molnar <> Cc: "Paul E. McKenney" <> Cc: Pranith Kumar <> Cc: Michal Hocko <> Cc: Vladimir Davydov <> Cc: Johannes Weiner <> Cc: H. Peter Anvin <> Cc: Tejun Heo <> Cc: Iulia Manda <> Cc: Andy Lutomirski <> Cc: Rusty Russell <> Cc: Peter Zijlstra <> Cc: Chuck Ebbert <> Cc: Oleg Nesterov <> Signed-off-by: Andrew Morton <> Signed-off-by: Linus Torvalds <>
Diffstat (limited to 'init')
1 files changed, 0 insertions, 7 deletions
diff --git a/init/Kconfig b/init/Kconfig
index c24b6f767bf0..235c7a2c0d20 100644
--- a/init/Kconfig
+++ b/init/Kconfig
@@ -2030,13 +2030,6 @@ config INIT_ALL_POSSIBLE
it was better to provide this option than to break all the archs
and have several arch maintainers pursuing me down dark alleys.
- bool
- default y
- depends on (SMP && MODULE_UNLOAD) || HOTPLUG_CPU
- help
- Need stop_machine() primitive.
source "block/Kconfig"