uv.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  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. struct cpumask;
  5. struct mm_struct;
  6. #ifdef CONFIG_X86_UV
  7. extern enum uv_system_type get_uv_system_type(void);
  8. extern int is_uv_system(void);
  9. extern void uv_cpu_init(void);
  10. extern void uv_nmi_init(void);
  11. extern void uv_register_nmi_notifier(void);
  12. extern void uv_system_init(void);
  13. extern const struct cpumask *uv_flush_tlb_others(const struct cpumask *cpumask,
  14. struct mm_struct *mm,
  15. unsigned long start,
  16. unsigned long end,
  17. unsigned int cpu);
  18. #else /* X86_UV */
  19. static inline enum uv_system_type get_uv_system_type(void) { return UV_NONE; }
  20. static inline int is_uv_system(void) { return 0; }
  21. static inline void uv_cpu_init(void) { }
  22. static inline void uv_system_init(void) { }
  23. static inline void uv_register_nmi_notifier(void) { }
  24. static inline const struct cpumask *
  25. uv_flush_tlb_others(const struct cpumask *cpumask, struct mm_struct *mm,
  26. unsigned long start, unsigned long end, unsigned int cpu)
  27. { return cpumask; }
  28. #endif /* X86_UV */
  29. #endif /* _ASM_X86_UV_UV_H */