numa.h 730 B

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