wakecpu.h 806 B

12345678910111213141516171819202122232425262728293031323334353637
  1. #ifndef __ASM_ES7000_WAKECPU_H
  2. #define __ASM_ES7000_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. #ifndef CONFIG_ES7000_CLUSTERED_APIC
  8. while (!atomic_read(deassert))
  9. cpu_relax();
  10. #endif
  11. return;
  12. }
  13. /* Nothing to do for most platforms, since cleared by the INIT cycle */
  14. static inline void smp_callin_clear_local_apic(void)
  15. {
  16. }
  17. static inline void store_NMI_vector(unsigned short *high, unsigned short *low)
  18. {
  19. }
  20. static inline void restore_NMI_vector(unsigned short *high, unsigned short *low)
  21. {
  22. }
  23. extern void __inquire_remote_apic(int apicid);
  24. static inline void inquire_remote_apic(int apicid)
  25. {
  26. if (apic_verbosity >= APIC_DEBUG)
  27. __inquire_remote_apic(apicid);
  28. }
  29. #endif /* __ASM_MACH_WAKECPU_H */