mach_wakecpu.h 932 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  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. #ifdef CONFIG_SMP
  22. extern void __inquire_remote_apic(int apicid);
  23. #else /* CONFIG_SMP */
  24. static inline void __inquire_remote_apic(int apicid)
  25. {
  26. }
  27. #endif /* CONFIG_SMP */
  28. static inline void inquire_remote_apic(int apicid)
  29. {
  30. if (apic_verbosity >= APIC_DEBUG)
  31. __inquire_remote_apic(apicid);
  32. }
  33. #endif /* _ASM_X86_MACH_DEFAULT_MACH_WAKECPU_H */