diff options
-rw-r--r-- | arch/x86/Kconfig | 4 | ||||
-rw-r--r-- | arch/x86/kernel/smpboot.c | 21 |
2 files changed, 0 insertions, 25 deletions
diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index ee2fb9d37745..dcdb5130cf85 100644 --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig | |||
@@ -254,10 +254,6 @@ config ARCH_HWEIGHT_CFLAGS | |||
254 | default "-fcall-saved-ecx -fcall-saved-edx" if X86_32 | 254 | default "-fcall-saved-ecx -fcall-saved-edx" if X86_32 |
255 | default "-fcall-saved-rdi -fcall-saved-rsi -fcall-saved-rdx -fcall-saved-rcx -fcall-saved-r8 -fcall-saved-r9 -fcall-saved-r10 -fcall-saved-r11" if X86_64 | 255 | default "-fcall-saved-rdi -fcall-saved-rsi -fcall-saved-rdx -fcall-saved-rcx -fcall-saved-r8 -fcall-saved-r9 -fcall-saved-r10 -fcall-saved-r11" if X86_64 |
256 | 256 | ||
257 | config ARCH_CPU_PROBE_RELEASE | ||
258 | def_bool y | ||
259 | depends on HOTPLUG_CPU | ||
260 | |||
261 | config ARCH_SUPPORTS_UPROBES | 257 | config ARCH_SUPPORTS_UPROBES |
262 | def_bool y | 258 | def_bool y |
263 | 259 | ||
diff --git a/arch/x86/kernel/smpboot.c b/arch/x86/kernel/smpboot.c index 6cacab671f9b..e73b3f53310c 100644 --- a/arch/x86/kernel/smpboot.c +++ b/arch/x86/kernel/smpboot.c | |||
@@ -82,27 +82,6 @@ | |||
82 | /* State of each CPU */ | 82 | /* State of each CPU */ |
83 | DEFINE_PER_CPU(int, cpu_state) = { 0 }; | 83 | DEFINE_PER_CPU(int, cpu_state) = { 0 }; |
84 | 84 | ||
85 | #ifdef CONFIG_HOTPLUG_CPU | ||
86 | /* | ||
87 | * We need this for trampoline_base protection from concurrent accesses when | ||
88 | * off- and onlining cores wildly. | ||
89 | */ | ||
90 | static DEFINE_MUTEX(x86_cpu_hotplug_driver_mutex); | ||
91 | |||
92 | void cpu_hotplug_driver_lock(void) | ||
93 | { | ||
94 | mutex_lock(&x86_cpu_hotplug_driver_mutex); | ||
95 | } | ||
96 | |||
97 | void cpu_hotplug_driver_unlock(void) | ||
98 | { | ||
99 | mutex_unlock(&x86_cpu_hotplug_driver_mutex); | ||
100 | } | ||
101 | |||
102 | ssize_t arch_cpu_probe(const char *buf, size_t count) { return -1; } | ||
103 | ssize_t arch_cpu_release(const char *buf, size_t count) { return -1; } | ||
104 | #endif | ||
105 | |||
106 | /* Number of siblings per CPU package */ | 85 | /* Number of siblings per CPU package */ |
107 | int smp_num_siblings = 1; | 86 | int smp_num_siblings = 1; |
108 | EXPORT_SYMBOL(smp_num_siblings); | 87 | EXPORT_SYMBOL(smp_num_siblings); |