Skip to content

Commit

Permalink
[PATCH] x86_64: Increase NUMA hash function nodemap
Browse files Browse the repository at this point in the history
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 <ak@suse.de>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Andi Kleen authored and Linus Torvalds committed Apr 18, 2006
1 parent 8bcc528 commit 6fa679f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/asm-x86_64/mmzone.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 6fa679f

Please sign in to comment.