]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blob - arch/x86/include/asm/mach-default/mach_wakecpu.h
Merge branch 'sched-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel...
[linux-2.6-omap-h63xx.git] / 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 #define TRAMPOLINE_PHYS_LOW (0x467)
5 #define TRAMPOLINE_PHYS_HIGH (0x469)
6
7 static inline void wait_for_init_deassert(atomic_t *deassert)
8 {
9         while (!atomic_read(deassert))
10                 cpu_relax();
11         return;
12 }
13
14 /* Nothing to do for most platforms, since cleared by the INIT cycle */
15 static inline void smp_callin_clear_local_apic(void)
16 {
17 }
18
19 static inline void store_NMI_vector(unsigned short *high, unsigned short *low)
20 {
21 }
22
23 static inline void restore_NMI_vector(unsigned short *high, unsigned short *low)
24 {
25 }
26
27 #ifdef CONFIG_SMP
28 extern void __inquire_remote_apic(int apicid);
29 #else /* CONFIG_SMP */
30 static inline void __inquire_remote_apic(int apicid)
31 {
32 }
33 #endif /* CONFIG_SMP */
34
35 static inline void inquire_remote_apic(int apicid)
36 {
37         if (apic_verbosity >= APIC_DEBUG)
38                 __inquire_remote_apic(apicid);
39 }
40
41 #endif /* _ASM_X86_MACH_DEFAULT_MACH_WAKECPU_H */