Linux 4.8-rc8
[linux/fpc-iii.git] / arch / s390 / include / asm / numa.h
blobdc19ee0c92aaa693d2ad3b8c4c614b3e0e427de7
1 /*
2 * NUMA support for s390
4 * Declare the NUMA core code structures and functions.
6 * Copyright IBM Corp. 2015
7 */
9 #ifndef _ASM_S390_NUMA_H
10 #define _ASM_S390_NUMA_H
12 #ifdef CONFIG_NUMA
14 #include <linux/numa.h>
15 #include <linux/cpumask.h>
17 void numa_setup(void);
18 int numa_pfn_to_nid(unsigned long pfn);
19 int __node_distance(int a, int b);
20 void numa_update_cpu_topology(void);
22 extern cpumask_t node_to_cpumask_map[MAX_NUMNODES];
23 extern int numa_debug_enabled;
25 #else
27 static inline void numa_setup(void) { }
28 static inline void numa_update_cpu_topology(void) { }
29 static inline int numa_pfn_to_nid(unsigned long pfn)
31 return 0;
34 #endif /* CONFIG_NUMA */
35 #endif /* _ASM_S390_NUMA_H */