summaryrefslogtreecommitdiff
path: root/include/asm-alpha/pgalloc.h
diff options
context:
space:
mode:
authorIvan Kokshaysky <ink@jurassic.park.msu.ru>2003-01-14 19:26:59 -0800
committerRichard Henderson <rth@are.twiddle.net>2003-01-14 19:26:59 -0800
commit9326a7307cae3d7f5254ca47a6861af6d0002daf (patch)
treea2b560980300751b05bd7dea9c4281884a161f8f /include/asm-alpha/pgalloc.h
parentecb581fd5b50d40b14938f618b7d1f9a0908694e (diff)
[PATCH] alpha numa update
From Jeff.Wiedemeier@hp.com: numa mm update including moving alpha numa support into machine vector so a generic numa kernel can be used.
Diffstat (limited to 'include/asm-alpha/pgalloc.h')
-rw-r--r--include/asm-alpha/pgalloc.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/asm-alpha/pgalloc.h b/include/asm-alpha/pgalloc.h
index 6feaa69c0893..fc675efac381 100644
--- a/include/asm-alpha/pgalloc.h
+++ b/include/asm-alpha/pgalloc.h
@@ -3,6 +3,7 @@
#include <linux/config.h>
#include <linux/mm.h>
+#include <linux/mmzone.h>
/*
* Allocate and free page tables. The xxx_kernel() versions are
@@ -13,7 +14,7 @@
static inline void
pmd_populate(struct mm_struct *mm, pmd_t *pmd, struct page *pte)
{
- pmd_set(pmd, (pte_t *)(((pte - mem_map) << PAGE_SHIFT) + PAGE_OFFSET));
+ pmd_set(pmd, (pte_t *)(page_to_pa(pte) + PAGE_OFFSET));
}
static inline void