mach_wakecpu.h 810 B

1234567891011121314151617181920212223242526272829303132333435
  1. #ifndef _ASM_X86_MACH_DEFAULT_MACH_WAKECPU_H
  2. #define _ASM_X86_MACH_DEFAULT_MACH_WAKECPU_H
  3. #define TRAMPOLINE_PHYS_LOW (0x467)
  4. #define TRAMPOLINE_PHYS_HIGH (0x469)
  5. static inline void wait_for_init_deassert(atomic_t *deassert)
  6. {
  7. while (!atomic_read(deassert))
  8. cpu_relax();
  9. return;
  10. }
  11. /* Nothing to do for most platforms, since cleared by the INIT cycle */
  12. static inline void smp_callin_clear_local_apic(void)
  13. {
  14. }
  15. static inline void store_NMI_vector(unsigned short *high, unsigned short *low)
  16. {
  17. }
  18. static inline void restore_NMI_vector(unsigned short *high, unsigned short *low)
  19. {
  20. }
  21. extern void __inquire_remote_apic(int apicid);
  22. static inline void inquire_remote_apic(int apicid)
  23. {
  24. if (apic_verbosity >= APIC_DEBUG)
  25. __inquire_remote_apic(apicid);
  26. }
  27. #endif /* _ASM_X86_MACH_DEFAULT_MACH_WAKECPU_H */