Skip to contentSkip to conversation

x86_64: extra NODES_SHIFT definition

PATCH In review Dave Hansen 2 participants 2 messages Mar 27, 2006

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86_64: extra NODES_SHIFT definition

The generic linux/numa.h file defines NODES_SHIFT to 0 in case the architecture did not.

Every architecture which has a NUMA config option defines NODES_SHIFT in its asm-$ARCH headers, but only if NUMA is enabled, except for x86_64.

This should make it like all the rest.

---

 work2-dave/include/asm-x86_64/numnodes.h |    2 --
 1 files changed, 2 deletions(-)
include/asm-x86_64/numnodes.h renamed from include/asm-x86_64/numnodes.h~x86_64-extra-NODES_SHIFT +0 -2
diff -puN include/asm-x86_64/numnodes.h~x86_64-extra-NODES_SHIFT include/asm-x86_64/numnodes.h
@@ -5,8 +5,6 @@
 
 #ifdef CONFIG_NUMA
 #define NODES_SHIFT	6
-#else
-#define NODES_SHIFT	0
 #endif
 
 #endif

_

#1 lore raw
Quoted 9 lines · Dave Hansen

The generic linux/numa.h file defines NODES_SHIFT to 0 in case the architecture did not.

Every architecture which has a NUMA config option defines NODES_SHIFT in its asm-$ARCH headers, but only if NUMA is enabled, except for x86_64.

This should make it like all the rest.

Applied thanks.
-Andi