diff options
author | Anton Blanchard <anton@samba.org> | 2005-11-10 22:22:35 -0500 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2005-11-11 06:21:11 -0500 |
commit | 45fb6cea09443b2066016f895937f9c2647a1507 (patch) | |
tree | 8abd2e14c0e096d583e6dc5151d0669db9227359 /include/asm-ppc64/page.h | |
parent | 3e66c4def14aa64ee6d1d4ef077d789abc30125d (diff) |
[PATCH] ppc64: Convert NUMA to sparsemem (3)
Convert to sparsemem and remove all the discontigmem code in the
process. This has a few advantages:
- The old numa_memory_lookup_table can go away
- All the arch specific discontigmem magic can go away
We also remove the triple pass of memory properties and instead create a
list of per node extents that we iterate through. A final cleanup would
be to change our lmb code to store extents per node, then we can reuse
that information in the numa code.
Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'include/asm-ppc64/page.h')
-rw-r--r-- | include/asm-ppc64/page.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/include/asm-ppc64/page.h b/include/asm-ppc64/page.h index e32f1187aa29..3efc3288f7e9 100644 --- a/include/asm-ppc64/page.h +++ b/include/asm-ppc64/page.h | |||
@@ -279,11 +279,6 @@ extern u64 ppc64_pft_size; /* Log 2 of page table size */ | |||
279 | 279 | ||
280 | #define __va(x) ((void *)((unsigned long)(x) + KERNELBASE)) | 280 | #define __va(x) ((void *)((unsigned long)(x) + KERNELBASE)) |
281 | 281 | ||
282 | #ifdef CONFIG_DISCONTIGMEM | ||
283 | #define page_to_pfn(page) discontigmem_page_to_pfn(page) | ||
284 | #define pfn_to_page(pfn) discontigmem_pfn_to_page(pfn) | ||
285 | #define pfn_valid(pfn) discontigmem_pfn_valid(pfn) | ||
286 | #endif | ||
287 | #ifdef CONFIG_FLATMEM | 282 | #ifdef CONFIG_FLATMEM |
288 | #define pfn_to_page(pfn) (mem_map + (pfn)) | 283 | #define pfn_to_page(pfn) (mem_map + (pfn)) |
289 | #define page_to_pfn(page) ((unsigned long)((page) - mem_map)) | 284 | #define page_to_pfn(page) ((unsigned long)((page) - mem_map)) |