summaryrefslogtreecommitdiffstats
path: root/include/asm-x86_64/numnodes.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-x86_64/numnodes.h')
-rw-r--r--include/asm-x86_64/numnodes.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/asm-x86_64/numnodes.h b/include/asm-x86_64/numnodes.h
new file mode 100644
index 000000000000..32be16b8ae96
--- /dev/null
+++ b/include/asm-x86_64/numnodes.h
@@ -0,0 +1,12 @@
+#ifndef _ASM_X8664_NUMNODES_H
+#define _ASM_X8664_NUMNODES_H 1
+
+#include <linux/config.h>
+
+#ifdef CONFIG_NUMA
+#define NODES_SHIFT 6
+#else
+#define NODES_SHIFT 0
+#endif
+
+#endif
OpenPOWER on IntegriCloud