Merge branch 'cpus4096-for-linus-2' of git://git.kernel.org/pub/scm/linux/kernel...
[linux-2.6] / arch / x86 / include / asm / es7000 / wakecpu.h
1 #ifndef __ASM_ES7000_WAKECPU_H
2 #define __ASM_ES7000_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 #ifndef CONFIG_ES7000_CLUSTERED_APIC
10         while (!atomic_read(deassert))
11                 cpu_relax();
12 #endif
13         return;
14 }
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)
22 {
23 }
24
25 static inline void restore_NMI_vector(unsigned short *high, unsigned short *low)
26 {
27 }
28
29 extern void __inquire_remote_apic(int apicid);
30
31 static inline void inquire_remote_apic(int apicid)
32 {
33         if (apic_verbosity >= APIC_DEBUG)
34                 __inquire_remote_apic(apicid);
35 }
36
37 #endif /* __ASM_MACH_WAKECPU_H */