Yinghai Lu | c7e7964 | 2008-07-25 02:17:33 -0700 | [diff] [blame] | 1 | #ifndef __ASM_ES7000_WAKECPU_H |
| 2 | #define __ASM_ES7000_WAKECPU_H |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3 | |
Yinghai Lu | 569712b | 2008-11-16 03:12:49 -0800 | [diff] [blame] | 4 | #define TRAMPOLINE_PHYS_LOW 0x467 |
| 5 | #define TRAMPOLINE_PHYS_HIGH 0x469 |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 6 | |
| 7 | static inline void wait_for_init_deassert(atomic_t *deassert) |
| 8 | { |
Yinghai Lu | 569712b | 2008-11-16 03:12:49 -0800 | [diff] [blame] | 9 | #ifndef CONFIG_ES7000_CLUSTERED_APIC |
Satyam Sharma | 62be900 | 2007-08-16 06:09:25 +0530 | [diff] [blame] | 10 | while (!atomic_read(deassert)) |
| 11 | cpu_relax(); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 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 | |
Yinghai Lu | 569712b | 2008-11-16 03:12:49 -0800 | [diff] [blame] | 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 | } |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 36 | |
Yinghai Lu | c7e7964 | 2008-07-25 02:17:33 -0700 | [diff] [blame] | 37 | #endif /* __ASM_MACH_WAKECPU_H */ |