diff options
author | Glauber Costa <gcosta@redhat.com> | 2008-03-03 12:12:35 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-04-17 11:40:53 -0400 |
commit | 64b1a21e0924dca7ea3b7cf4287fa719c8ba7fc5 (patch) | |
tree | 189bd464e319f2980d3832978b06a757d1d55092 | |
parent | 8678969e60d80527d96d2af0011e72c87c9c1fe5 (diff) |
x86: unify smp_call_function_mask
definition is moved to common header, x86_64 function name
now is native_smp_call_function_mask
Signed-off-by: Glauber Costa <gcosta@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
-rw-r--r-- | arch/x86/kernel/smp_64.c | 7 | ||||
-rw-r--r-- | include/asm-x86/smp.h | 7 | ||||
-rw-r--r-- | include/asm-x86/smp_32.h | 6 |
3 files changed, 11 insertions, 9 deletions
diff --git a/arch/x86/kernel/smp_64.c b/arch/x86/kernel/smp_64.c index fd1816123496..225b765db5a2 100644 --- a/arch/x86/kernel/smp_64.c +++ b/arch/x86/kernel/smp_64.c | |||
@@ -386,9 +386,9 @@ static int __smp_call_function_mask(cpumask_t mask, | |||
386 | * You must not call this function with disabled interrupts or from a | 386 | * You must not call this function with disabled interrupts or from a |
387 | * hardware interrupt handler or from a bottom half handler. | 387 | * hardware interrupt handler or from a bottom half handler. |
388 | */ | 388 | */ |
389 | int smp_call_function_mask(cpumask_t mask, | 389 | int native_smp_call_function_mask(cpumask_t mask, |
390 | void (*func)(void *), void *info, | 390 | void (*func)(void *), void *info, |
391 | int wait) | 391 | int wait) |
392 | { | 392 | { |
393 | int ret; | 393 | int ret; |
394 | 394 | ||
@@ -531,5 +531,6 @@ asmlinkage void smp_call_function_interrupt(void) | |||
531 | 531 | ||
532 | struct smp_ops smp_ops = { | 532 | struct smp_ops smp_ops = { |
533 | .smp_send_reschedule = native_smp_send_reschedule, | 533 | .smp_send_reschedule = native_smp_send_reschedule, |
534 | .smp_call_function_mask = native_smp_call_function_mask, | ||
534 | }; | 535 | }; |
535 | EXPORT_SYMBOL_GPL(smp_ops); | 536 | EXPORT_SYMBOL_GPL(smp_ops); |
diff --git a/include/asm-x86/smp.h b/include/asm-x86/smp.h index 28f33c03d793..d9782f4f469e 100644 --- a/include/asm-x86/smp.h +++ b/include/asm-x86/smp.h | |||
@@ -28,6 +28,13 @@ static inline void smp_send_reschedule(int cpu) | |||
28 | { | 28 | { |
29 | smp_ops.smp_send_reschedule(cpu); | 29 | smp_ops.smp_send_reschedule(cpu); |
30 | } | 30 | } |
31 | |||
32 | static inline int smp_call_function_mask(cpumask_t mask, | ||
33 | void (*func) (void *info), void *info, | ||
34 | int wait) | ||
35 | { | ||
36 | return smp_ops.smp_call_function_mask(mask, func, info, wait); | ||
37 | } | ||
31 | #endif | 38 | #endif |
32 | 39 | ||
33 | #ifdef CONFIG_X86_32 | 40 | #ifdef CONFIG_X86_32 |
diff --git a/include/asm-x86/smp_32.h b/include/asm-x86/smp_32.h index c60a3dd3e802..d9337ee8c2fc 100644 --- a/include/asm-x86/smp_32.h +++ b/include/asm-x86/smp_32.h | |||
@@ -60,12 +60,6 @@ static inline void smp_send_stop(void) | |||
60 | { | 60 | { |
61 | smp_ops.smp_send_stop(); | 61 | smp_ops.smp_send_stop(); |
62 | } | 62 | } |
63 | static inline int smp_call_function_mask(cpumask_t mask, | ||
64 | void (*func) (void *info), void *info, | ||
65 | int wait) | ||
66 | { | ||
67 | return smp_ops.smp_call_function_mask(mask, func, info, wait); | ||
68 | } | ||
69 | 63 | ||
70 | void native_smp_prepare_boot_cpu(void); | 64 | void native_smp_prepare_boot_cpu(void); |
71 | void native_smp_prepare_cpus(unsigned int max_cpus); | 65 | void native_smp_prepare_cpus(unsigned int max_cpus); |