diff options
author | Ingo Molnar <mingo@elte.hu> | 2009-01-28 10:31:52 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-01-28 17:20:33 -0500 |
commit | 333344d94300500e401cffb4eea10a5ab6e5a41d (patch) | |
tree | 21dd26c49dfba195a03e2fa860fe4d3123ca3de8 /arch/x86/include/asm | |
parent | a965936643e28af8152d9e960b966baa1a5588a2 (diff) |
x86, smp: refactor ->smp_callin_clear_local_apic() methods
Only NUMAQ does something substantial here, because it initializes
via NMIs (not via INIT as standard SMP startup) - so it needs to
reset the APIC.
- extend the generic code to handle NULL methods
- clear out dummy methods and replace them with NULL
- clean up: remove wrapper macros, etc.
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/include/asm')
-rw-r--r-- | arch/x86/include/asm/es7000/wakecpu.h | 5 | ||||
-rw-r--r-- | arch/x86/include/asm/mach-default/mach_wakecpu.h | 5 | ||||
-rw-r--r-- | arch/x86/include/asm/mach-generic/mach_wakecpu.h | 1 | ||||
-rw-r--r-- | arch/x86/include/asm/numaq/wakecpu.h | 4 |
4 files changed, 2 insertions, 13 deletions
diff --git a/arch/x86/include/asm/es7000/wakecpu.h b/arch/x86/include/asm/es7000/wakecpu.h index 5c4d05f46d2d..e8e03962633b 100644 --- a/arch/x86/include/asm/es7000/wakecpu.h +++ b/arch/x86/include/asm/es7000/wakecpu.h | |||
@@ -13,11 +13,6 @@ static inline void es7000_wait_for_init_deassert(atomic_t *deassert) | |||
13 | return; | 13 | return; |
14 | } | 14 | } |
15 | 15 | ||
16 | /* Nothing to do for most platforms, since cleared by the INIT cycle */ | ||
17 | static inline void smp_callin_clear_local_apic(void) | ||
18 | { | ||
19 | } | ||
20 | |||
21 | static inline void store_NMI_vector(unsigned short *high, unsigned short *low) | 16 | static inline void store_NMI_vector(unsigned short *high, unsigned short *low) |
22 | { | 17 | { |
23 | } | 18 | } |
diff --git a/arch/x86/include/asm/mach-default/mach_wakecpu.h b/arch/x86/include/asm/mach-default/mach_wakecpu.h index 1d34c69a758b..d059807cd7e8 100644 --- a/arch/x86/include/asm/mach-default/mach_wakecpu.h +++ b/arch/x86/include/asm/mach-default/mach_wakecpu.h | |||
@@ -8,11 +8,6 @@ static inline void default_wait_for_init_deassert(atomic_t *deassert) | |||
8 | return; | 8 | return; |
9 | } | 9 | } |
10 | 10 | ||
11 | /* Nothing to do for most platforms, since cleared by the INIT cycle */ | ||
12 | static inline void smp_callin_clear_local_apic(void) | ||
13 | { | ||
14 | } | ||
15 | |||
16 | static inline void store_NMI_vector(unsigned short *high, unsigned short *low) | 11 | static inline void store_NMI_vector(unsigned short *high, unsigned short *low) |
17 | { | 12 | { |
18 | } | 13 | } |
diff --git a/arch/x86/include/asm/mach-generic/mach_wakecpu.h b/arch/x86/include/asm/mach-generic/mach_wakecpu.h index 58e54122f730..30515a154d8e 100644 --- a/arch/x86/include/asm/mach-generic/mach_wakecpu.h +++ b/arch/x86/include/asm/mach-generic/mach_wakecpu.h | |||
@@ -1,7 +1,6 @@ | |||
1 | #ifndef _ASM_X86_MACH_GENERIC_MACH_WAKECPU_H | 1 | #ifndef _ASM_X86_MACH_GENERIC_MACH_WAKECPU_H |
2 | #define _ASM_X86_MACH_GENERIC_MACH_WAKECPU_H | 2 | #define _ASM_X86_MACH_GENERIC_MACH_WAKECPU_H |
3 | 3 | ||
4 | #define smp_callin_clear_local_apic (apic->smp_callin_clear_local_apic) | ||
5 | #define store_NMI_vector (apic->store_NMI_vector) | 4 | #define store_NMI_vector (apic->store_NMI_vector) |
6 | #define restore_NMI_vector (apic->restore_NMI_vector) | 5 | #define restore_NMI_vector (apic->restore_NMI_vector) |
7 | #define inquire_remote_apic (apic->inquire_remote_apic) | 6 | #define inquire_remote_apic (apic->inquire_remote_apic) |
diff --git a/arch/x86/include/asm/numaq/wakecpu.h b/arch/x86/include/asm/numaq/wakecpu.h index 884b95cf5846..61d0a7d96136 100644 --- a/arch/x86/include/asm/numaq/wakecpu.h +++ b/arch/x86/include/asm/numaq/wakecpu.h | |||
@@ -8,9 +8,9 @@ | |||
8 | 8 | ||
9 | /* | 9 | /* |
10 | * Because we use NMIs rather than the INIT-STARTUP sequence to | 10 | * Because we use NMIs rather than the INIT-STARTUP sequence to |
11 | * bootstrap the CPUs, the APIC may be in a weird state. Kick it. | 11 | * bootstrap the CPUs, the APIC may be in a weird state. Kick it: |
12 | */ | 12 | */ |
13 | static inline void smp_callin_clear_local_apic(void) | 13 | static inline void numaq_smp_callin_clear_local_apic(void) |
14 | { | 14 | { |
15 | clear_local_APIC(); | 15 | clear_local_APIC(); |
16 | } | 16 | } |