summaryrefslogtreecommitdiffstats
path: root/include/asm-mips64
diff options
context:
space:
mode:
authorKanoj Sarcar <kanoj@engr.sgi.com>2000-06-27 19:17:23 +0000
committerKanoj Sarcar <kanoj@engr.sgi.com>2000-06-27 19:17:23 +0000
commitec32bf4955224bb02bad5ea2e45b4ef337f362da (patch)
treee2d7c4ad443b052e26a5cbc8ef87195772374432 /include/asm-mips64
parent2bdd5032c1d9e0ce705d05b9e2656d7608e7c52f (diff)
Add in the CONFIG_NUMA option for IP27s (distinct from DISCONTIGMEM which
might also be used by platforms with memory holes, but uniform access times). CONFIG_NUMA special code will probably make its way into generic kernel.
Diffstat (limited to 'include/asm-mips64')
-rw-r--r--include/asm-mips64/mmzone.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/asm-mips64/mmzone.h b/include/asm-mips64/mmzone.h
index 1bbb1f818..2c6af1d75 100644
--- a/include/asm-mips64/mmzone.h
+++ b/include/asm-mips64/mmzone.h
@@ -29,6 +29,8 @@ extern plat_pg_data_t *plat_node_data[];
#define PLAT_NODE_DATA_LOCALNR(p, n) \
(((p) - PLAT_NODE_DATA(n)->gendata.node_start_paddr) >> PAGE_SHIFT)
+#define numa_node_id() cputocnode(current->processor)
+
#ifdef CONFIG_DISCONTIGMEM
/*