numa.h 691 B

123456789101112131415161718192021222324252627282930313233343536
  1. /*
  2. * NUMA support for s390
  3. *
  4. * Declare the NUMA core code structures and functions.
  5. *
  6. * Copyright IBM Corp. 2015
  7. */
  8. #ifndef _ASM_S390_NUMA_H
  9. #define _ASM_S390_NUMA_H
  10. #ifdef CONFIG_NUMA
  11. #include <linux/numa.h>
  12. #include <linux/cpumask.h>
  13. void numa_setup(void);
  14. int numa_pfn_to_nid(unsigned long pfn);
  15. int __node_distance(int a, int b);
  16. void numa_update_cpu_topology(void);
  17. extern cpumask_t node_to_cpumask_map[MAX_NUMNODES];
  18. extern int numa_debug_enabled;
  19. #else
  20. static inline void numa_setup(void) { }
  21. static inline void numa_update_cpu_topology(void) { }
  22. static inline int numa_pfn_to_nid(unsigned long pfn)
  23. {
  24. return 0;
  25. }
  26. #endif /* CONFIG_NUMA */
  27. #endif /* _ASM_S390_NUMA_H */