uv.h 956 B

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. 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_system_init(void);
  11. extern const struct cpumask *uv_flush_tlb_others(const struct cpumask *cpumask,
  12. struct mm_struct *mm,
  13. unsigned long va,
  14. unsigned int cpu);
  15. #else /* X86_UV */
  16. static inline enum uv_system_type get_uv_system_type(void) { return UV_NONE; }
  17. static inline int is_uv_system(void) { return 0; }
  18. static inline void uv_cpu_init(void) { }
  19. static inline void uv_system_init(void) { }
  20. static inline const struct cpumask *
  21. uv_flush_tlb_others(const struct cpumask *cpumask, struct mm_struct *mm,
  22. unsigned long va, unsigned int cpu)
  23. { return cpumask; }
  24. #endif /* X86_UV */
  25. #endif /* _ASM_X86_UV_UV_H */