projects/linux·commit 6fa679fd

[PATCH] x86_64: Increase NUMA hash function nodemap

6fa679fd · Andi Kleen <[email protected]> · 2006-04-18 12:35:16 +02:00

Needed for some big Opteron systems to compute a numa hash function
They have more than 12 bits significant address.

TBD switch this over to dynamic allocation or use better hash

Signed-off-by: Andi Kleen <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Commit
6fa679fdea22cd96287d4aa11ee771bcd46c6dfb
Parents
8bcc5280

Changes

1 files changed · +2 −1

FileStatusAddDelContent
include/asm-x86_64/mmzone.hmodified+2−1View file

include/asm-x86_64/mmzone.h

View file
diff --git a/include/asm-x86_64/mmzone.h b/include/asm-x86_64/mmzone.h
index 6b18cd8..6944e71 100644
--- a/include/asm-x86_64/mmzone.h
+++ b/include/asm-x86_64/mmzone.h
@@ -12,7 +12,8 @@
#include <asm/smp.h>
-#define NODEMAPSIZE 0xfff
+/* Should really switch to dynamic allocation at some point */
+#define NODEMAPSIZE 0x4fff
/* Simple perfect hash to map physical addresses to node numbers */
struct memnode {