1 /* SPDX-License-Identifier: GPL-2.0 */
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 static inline bool numa_valid_node(int nid
)
18 return nid
>= 0 && nid
< MAX_NUMNODES
;
21 #endif /* _LINUX_NUMA_H */