summaryrefslogtreecommitdiffstats
path: root/include/asm-mips64
diff options
context:
space:
mode:
authorKanoj Sarcar <kanoj@engr.sgi.com>2000-02-10 09:07:31 +0000
committerKanoj Sarcar <kanoj@engr.sgi.com>2000-02-10 09:07:31 +0000
commitc566573a9a2049a15f9e13375e7c1bf29fe84d0a (patch)
treefae60e5f2bc2184007dd77b27589f4891eef6b9d /include/asm-mips64
parentccd309e0011c2343f720b04f2b3fa2b1c2b3e530 (diff)
The pernode pgdat structure is now allocated out of the corresponding
node's memory, instead of having all the per node data in an array on node 0.
Diffstat (limited to 'include/asm-mips64')
-rw-r--r--include/asm-mips64/mmzone.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/asm-mips64/mmzone.h b/include/asm-mips64/mmzone.h
index 9df5dc0b5..2d5d1a9b3 100644
--- a/include/asm-mips64/mmzone.h
+++ b/include/asm-mips64/mmzone.h
@@ -20,10 +20,10 @@ typedef struct plat_pglist_data {
*/
extern int numa_debug(void);
-extern plat_pg_data_t plat_node_data[];
+extern plat_pg_data_t *plat_node_data[];
#define PHYSADDR_TO_NID(pa) NASID_TO_COMPACT_NODEID(NASID_GET(pa))
-#define PLAT_NODE_DATA(n) (plat_node_data + (n))
+#define PLAT_NODE_DATA(n) (plat_node_data[n])
#define PLAT_NODE_DATA_STARTNR(n) (PLAT_NODE_DATA(n)->start_mapnr)
#define PLAT_NODE_DATA_LOCALNR(p, n) \
(((p) - PLAT_NODE_DATA(n)->physstart) >> PAGE_SHIFT)