public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: William Lee Irwin III <wli@holomorphy.com>
To: linux-kernel@vger.kernel.org
Subject: asm-i386/numaq.h fixes
Date: Sun, 16 Feb 2003 23:51:07 -0800	[thread overview]
Message-ID: <20030217075107.GA14324@holomorphy.com> (raw)

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()

             reply	other threads:[~2003-02-17  7:42 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-02-17  7:51 William Lee Irwin III [this message]
2003-02-17 17:01 ` asm-i386/numaq.h fixes 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20030217075107.GA14324@holomorphy.com \
    --to=wli@holomorphy.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox