smp.h 780 B

123456789101112131415161718192021222324252627282930313233
  1. #ifndef _XEN_SMP_H
  2. #ifdef CONFIG_SMP
  3. extern void xen_send_IPI_mask(const struct cpumask *mask,
  4. int vector);
  5. extern void xen_send_IPI_mask_allbutself(const struct cpumask *mask,
  6. int vector);
  7. extern void xen_send_IPI_allbutself(int vector);
  8. extern void xen_send_IPI_all(int vector);
  9. extern void xen_send_IPI_self(int vector);
  10. extern int xen_smp_intr_init(unsigned int cpu);
  11. extern void xen_smp_intr_free(unsigned int cpu);
  12. #else /* CONFIG_SMP */
  13. static inline int xen_smp_intr_init(unsigned int cpu)
  14. {
  15. return 0;
  16. }
  17. static inline void xen_smp_intr_free(unsigned int cpu) {}
  18. #endif /* CONFIG_SMP */
  19. #ifdef CONFIG_XEN_PVH
  20. extern void xen_pvh_early_cpu_init(int cpu, bool entry);
  21. #else
  22. static inline void xen_pvh_early_cpu_init(int cpu, bool entry)
  23. {
  24. }
  25. #endif
  26. #endif