uv.h 1.1 KB

123456789101112131415161718192021222324252627282930313233
  1. #ifndef _ASM_X86_UV_UV_H
  2. #define _ASM_X86_UV_UV_H
  3. enum uv_system_type {UV_NONE, UV_LEGACY_APIC, UV_X2APIC, UV_NON_UNIQUE_APIC};
  4. #ifdef CONFIG_X86_UV
  5. extern enum uv_system_type get_uv_system_type(void);
  6. extern int is_uv_system(void);
  7. extern void uv_cpu_init(void);
  8. extern void uv_system_init(void);
  9. extern int uv_wakeup_secondary(int phys_apicid, unsigned int start_rip);
  10. extern const struct cpumask *uv_flush_tlb_others(const struct cpumask *cpumask,
  11. struct mm_struct *mm,
  12. unsigned long va,
  13. unsigned int cpu);
  14. #else /* X86_UV */
  15. static inline enum uv_system_type get_uv_system_type(void) { return UV_NONE; }
  16. static inline int is_uv_system(void) { return 0; }
  17. static inline void uv_cpu_init(void) { }
  18. static inline void uv_system_init(void) { }
  19. static inline int uv_wakeup_secondary(int phys_apicid, unsigned int start_rip)
  20. { return 1; }
  21. static inline const struct cpumask *
  22. uv_flush_tlb_others(const struct cpumask *cpumask, struct mm_struct *mm,
  23. unsigned long va, unsigned int cpu)
  24. { return cpumask; }
  25. #endif /* X86_UV */
  26. #endif /* _ASM_X86_UV_UV_H */