uv.h 987 B

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