diff options
Diffstat (limited to 'arch')
-rw-r--r-- | arch/x86/include/asm/apic.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/arch/x86/include/asm/apic.h b/arch/x86/include/asm/apic.h index 24e21273e30b..0fbf6f1520fa 100644 --- a/arch/x86/include/asm/apic.h +++ b/arch/x86/include/asm/apic.h | |||
@@ -331,10 +331,27 @@ struct apic { | |||
331 | u32 (*safe_wait_icr_idle)(void); | 331 | u32 (*safe_wait_icr_idle)(void); |
332 | }; | 332 | }; |
333 | 333 | ||
334 | /* | ||
335 | * Pointer to the local APIC driver in use on this system (there's | ||
336 | * always just one such driver in use - the kernel decides via an | ||
337 | * early probing process which one it picks - and then sticks to it): | ||
338 | */ | ||
334 | extern struct apic *apic; | 339 | extern struct apic *apic; |
340 | |||
341 | /* | ||
342 | * APIC functionality to boot other CPUs - only used on SMP: | ||
343 | */ | ||
344 | #ifdef CONFIG_SMP | ||
335 | extern atomic_t init_deasserted; | 345 | extern atomic_t init_deasserted; |
336 | 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); |
337 | extern int wakeup_secondary_cpu_via_init(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 | ||
338 | 355 | ||
339 | static inline u32 apic_read(u32 reg) | 356 | static inline u32 apic_read(u32 reg) |
340 | { | 357 | { |