mach_wakecpu.h 866 B

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