x86, ES7000: consolidate the APIC code
[linux-2.6] / arch / x86 / include / asm / mach-default / mach_wakecpu.h
1 #ifndef _ASM_X86_MACH_DEFAULT_MACH_WAKECPU_H
2 #define _ASM_X86_MACH_DEFAULT_MACH_WAKECPU_H
3
4 static inline void default_wait_for_init_deassert(atomic_t *deassert)
5 {
6         while (!atomic_read(deassert))
7                 cpu_relax();
8         return;
9 }
10
11 #ifdef CONFIG_SMP
12 extern void __inquire_remote_apic(int apicid);
13 #else /* CONFIG_SMP */
14 static inline void __inquire_remote_apic(int apicid)
15 {
16 }
17 #endif /* CONFIG_SMP */
18
19 static inline void default_inquire_remote_apic(int apicid)
20 {
21         if (apic_verbosity >= APIC_DEBUG)
22                 __inquire_remote_apic(apicid);
23 }
24
25 #endif /* _ASM_X86_MACH_DEFAULT_MACH_WAKECPU_H */