| /* SPDX-License-Identifier: GPL-2.0 */ |
| #ifdef CONFIG_NODES_SHIFT |
| #define NODES_SHIFT CONFIG_NODES_SHIFT |
| #define MAX_NUMNODES (1 << NODES_SHIFT) |
| #define NUMA_NO_NODE (-1) |
| /* optionally keep NUMA memory info available post init */ |
| #ifdef CONFIG_NUMA_KEEP_MEMINFO |
| #define __initdata_or_meminfo |
| #define __initdata_or_meminfo __initdata |
| /* Generic implementation available */ |
| int numa_map_to_online_node(int node); |
| * Optional architecture specific implementation, users need a "depends |
| int phys_to_target_node(phys_addr_t addr); |
| static inline int numa_map_to_online_node(int node) |
| static inline int phys_to_target_node(phys_addr_t addr) |
| #endif /* _LINUX_NUMA_H */ |