diff options
author | Ingo Molnar <mingo@elte.hu> | 2009-02-26 07:51:40 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-02-26 07:58:26 -0500 |
commit | 1f5bcabf1b997d6b76a09114b5a79423495a1263 (patch) | |
tree | e933ed3b2f534d6014fdbaa9d8210d7d1919f7cb /arch/x86/include/asm/apic.h | |
parent | 0917c01f8e793f57a53cf886533d4c75c67f6e89 (diff) |
x86: apic: simplify secondary CPU wakeup methods
Impact: cleanup
- rename apic->wakeup_cpu to apic->wakeup_secondary_cpu, to
make it apparent that this is an SMP-only method
- handle NULL ->wakeup_secondary_cpus to mean the default INIT
wakeup sequence - this allows simplification of the APIC
driver templates.
Cc: Yinghai Lu <yinghai@kernel.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/include/asm/apic.h')
-rw-r--r-- | arch/x86/include/asm/apic.h | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/arch/x86/include/asm/apic.h b/arch/x86/include/asm/apic.h index 0fbf6f1520fa..4ef949c1972e 100644 --- a/arch/x86/include/asm/apic.h +++ b/arch/x86/include/asm/apic.h | |||
@@ -313,7 +313,7 @@ struct apic { | |||
313 | void (*send_IPI_self)(int vector); | 313 | void (*send_IPI_self)(int vector); |
314 | 314 | ||
315 | /* wakeup_secondary_cpu */ | 315 | /* wakeup_secondary_cpu */ |
316 | int (*wakeup_cpu)(int apicid, unsigned long start_eip); | 316 | int (*wakeup_secondary_cpu)(int apicid, unsigned long start_eip); |
317 | 317 | ||
318 | int trampoline_phys_low; | 318 | int trampoline_phys_low; |
319 | int trampoline_phys_high; | 319 | int trampoline_phys_high; |
@@ -344,13 +344,6 @@ extern struct apic *apic; | |||
344 | #ifdef CONFIG_SMP | 344 | #ifdef CONFIG_SMP |
345 | extern atomic_t init_deasserted; | 345 | extern atomic_t init_deasserted; |
346 | extern int wakeup_secondary_cpu_via_nmi(int apicid, unsigned long start_eip); | 346 | extern int wakeup_secondary_cpu_via_nmi(int apicid, unsigned long start_eip); |
347 | extern int wakeup_secondary_cpu_via_init(int apicid, unsigned long start_eip); | ||
348 | #else | ||
349 | static inline int | ||
350 | wakeup_secondary_cpu_via_init(int apicid, unsigned long start_eip) | ||
351 | { | ||
352 | return 0; | ||
353 | } | ||
354 | #endif | 347 | #endif |
355 | 348 | ||
356 | static inline u32 apic_read(u32 reg) | 349 | static inline u32 apic_read(u32 reg) |