1 /* SPDX-License-Identifier: GPL-2.0 */
4 #include <linux/types.h>
6 #ifdef CONFIG_NODES_SHIFT
7 #define NODES_SHIFT CONFIG_NODES_SHIFT
12 #define MAX_NUMNODES (1 << NODES_SHIFT)
14 #define NUMA_NO_NODE (-1)
16 /* optionally keep NUMA memory info available post init */
17 #ifdef CONFIG_NUMA_KEEP_MEMINFO
18 #define __initdata_or_meminfo
20 #define __initdata_or_meminfo __initdata
24 /* Generic implementation available */
25 int numa_map_to_online_node(int node);
27 static inline int numa_map_to_online_node(int node)
33 #endif /* _LINUX_NUMA_H */