diff options
-rw-r--r-- | arch/x86/kernel/smp_64.c | 3 | ||||
-rw-r--r-- | include/asm-x86/smp.h | 5 | ||||
-rw-r--r-- | include/asm-x86/smp_32.h | 5 |
3 files changed, 7 insertions, 6 deletions
diff --git a/arch/x86/kernel/smp_64.c b/arch/x86/kernel/smp_64.c index 4e1e2bce969c..ad11ef0c3fae 100644 --- a/arch/x86/kernel/smp_64.c +++ b/arch/x86/kernel/smp_64.c | |||
@@ -421,7 +421,7 @@ static void stop_this_cpu(void *dummy) | |||
421 | for (;;); | 421 | for (;;); |
422 | } | 422 | } |
423 | 423 | ||
424 | void smp_send_stop(void) | 424 | void native_smp_send_stop(void) |
425 | { | 425 | { |
426 | int nolock; | 426 | int nolock; |
427 | unsigned long flags; | 427 | unsigned long flags; |
@@ -482,6 +482,7 @@ struct smp_ops smp_ops = { | |||
482 | .smp_prepare_cpus = native_smp_prepare_cpus, | 482 | .smp_prepare_cpus = native_smp_prepare_cpus, |
483 | .smp_cpus_done = native_smp_cpus_done, | 483 | .smp_cpus_done = native_smp_cpus_done, |
484 | 484 | ||
485 | .smp_send_stop = native_smp_send_stop, | ||
485 | .smp_send_reschedule = native_smp_send_reschedule, | 486 | .smp_send_reschedule = native_smp_send_reschedule, |
486 | .smp_call_function_mask = native_smp_call_function_mask, | 487 | .smp_call_function_mask = native_smp_call_function_mask, |
487 | .cpu_up = native_cpu_up, | 488 | .cpu_up = native_cpu_up, |
diff --git a/include/asm-x86/smp.h b/include/asm-x86/smp.h index 28cb1f8bb47e..2ab8ed4e99e0 100644 --- a/include/asm-x86/smp.h +++ b/include/asm-x86/smp.h | |||
@@ -25,6 +25,11 @@ struct smp_ops { | |||
25 | #ifdef CONFIG_SMP | 25 | #ifdef CONFIG_SMP |
26 | extern struct smp_ops smp_ops; | 26 | extern struct smp_ops smp_ops; |
27 | 27 | ||
28 | static inline void smp_send_stop(void) | ||
29 | { | ||
30 | smp_ops.smp_send_stop(); | ||
31 | } | ||
32 | |||
28 | static inline void smp_prepare_boot_cpu(void) | 33 | static inline void smp_prepare_boot_cpu(void) |
29 | { | 34 | { |
30 | smp_ops.smp_prepare_boot_cpu(); | 35 | smp_ops.smp_prepare_boot_cpu(); |
diff --git a/include/asm-x86/smp_32.h b/include/asm-x86/smp_32.h index bc90a4ed3235..41b58e0bc75b 100644 --- a/include/asm-x86/smp_32.h +++ b/include/asm-x86/smp_32.h | |||
@@ -39,11 +39,6 @@ extern void remove_siblinginfo(int cpu); | |||
39 | extern void set_cpu_sibling_map(int cpu); | 39 | extern void set_cpu_sibling_map(int cpu); |
40 | 40 | ||
41 | #ifdef CONFIG_SMP | 41 | #ifdef CONFIG_SMP |
42 | static inline void smp_send_stop(void) | ||
43 | { | ||
44 | smp_ops.smp_send_stop(); | ||
45 | } | ||
46 | |||
47 | #ifndef CONFIG_PARAVIRT | 42 | #ifndef CONFIG_PARAVIRT |
48 | #define startup_ipi_hook(phys_apicid, start_eip, start_esp) do { } while (0) | 43 | #define startup_ipi_hook(phys_apicid, start_eip, start_esp) do { } while (0) |
49 | #endif | 44 | #endif |