All of lore.kernel.org
 help / color / mirror / Atom feed
* asm-i386/numaq.h fixes
@ 2003-02-17  7:51 William Lee Irwin III
  2003-02-17 17:01 ` Martin J. Bligh
  0 siblings, 1 reply; 4+ messages in thread
From: William Lee Irwin III @ 2003-02-17  7:51 UTC (permalink / raw)
  To: linux-kernel

As can be seen from:

http://www-3.ibm.com/software/data/db2/benchmarks/050300.html

MAX_NUMNODES is 16 on NUMA-Q, not 8.

Also, PHYSADDR_TO_NID() needs to parenthesize its argument.

-- wli

===== include/asm-i386/numaq.h 1.5 vs edited =====
--- 1.5/include/asm-i386/numaq.h	Tue Jan  7 03:11:19 2003
+++ edited/include/asm-i386/numaq.h	Sun Feb 16 23:47:34 2003
@@ -37,8 +37,8 @@
 #define PAGES_PER_ELEMENT (16777216/256)
 
 #define pfn_to_pgdat(pfn) NODE_DATA(pfn_to_nid(pfn))
-#define PHYSADDR_TO_NID(pa) pfn_to_nid(pa >> PAGE_SHIFT)
-#define MAX_NUMNODES		8
+#define PHYSADDR_TO_NID(pa) pfn_to_nid((pa) >> PAGE_SHIFT)
+#define MAX_NUMNODES		16
 extern int pfn_to_nid(unsigned long);
 extern void get_memcfg_numaq(void);
 #define get_memcfg_numa() get_memcfg_numaq()

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2003-02-20 15:37 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-02-17  7:51 asm-i386/numaq.h fixes William Lee Irwin III
2003-02-17 17:01 ` Martin J. Bligh
2003-02-17 18:12   ` William Lee Irwin III
2003-02-20 15:45   ` cpu-2.5.62-1 (was Re: asm-i386/numaq.h fixes) William Lee Irwin III

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.