1*7c9eefe8SStephen Rothwell /* SPDX-License-Identifier: GPL-2.0 */ 2*7c9eefe8SStephen Rothwell #ifndef _LINUX_NUMA_H 3*7c9eefe8SStephen Rothwell #define _LINUX_NUMA_H 4*7c9eefe8SStephen Rothwell 5*7c9eefe8SStephen Rothwell 6*7c9eefe8SStephen Rothwell #ifdef CONFIG_NODES_SHIFT 7*7c9eefe8SStephen Rothwell #define NODES_SHIFT CONFIG_NODES_SHIFT 8*7c9eefe8SStephen Rothwell #else 9*7c9eefe8SStephen Rothwell #define NODES_SHIFT 0 10*7c9eefe8SStephen Rothwell #endif 11*7c9eefe8SStephen Rothwell 12*7c9eefe8SStephen Rothwell #define MAX_NUMNODES (1 << NODES_SHIFT) 13*7c9eefe8SStephen Rothwell 14*7c9eefe8SStephen Rothwell #define NUMA_NO_NODE (-1) 15*7c9eefe8SStephen Rothwell 16*7c9eefe8SStephen Rothwell #endif /* _LINUX_NUMA_H */ 17