aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/mm/mem.c
diff options
context:
space:
mode:
authorMike Kravetz <kravetz@us.ibm.com>2005-11-07 19:25:48 -0500
committerPaul Mackerras <paulus@samba.org>2005-11-07 23:17:13 -0500
commit54b79248b24610663298e122c6ba3804468271fe (patch)
treed8af884b602053ce2d2ed37cdcbfe461c2416b4f /arch/powerpc/mm/mem.c
parent76c8e25b905f99be5ddbe999597ba7c2c33ec64b (diff)
[PATCH] revised Memory Add Fixes for ppc64
Add the create_section_mapping() routine to create hptes for memory sections dynamically added after system boot. Signed-off-by: Mike Kravetz <kravetz@us.ibm.com> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/mm/mem.c')
-rw-r--r--arch/powerpc/mm/mem.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/powerpc/mm/mem.c b/arch/powerpc/mm/mem.c
index 6f55efd9be95..2ead0951823a 100644
--- a/arch/powerpc/mm/mem.c
+++ b/arch/powerpc/mm/mem.c
@@ -127,6 +127,9 @@ int __devinit add_memory(u64 start, u64 size)
127 unsigned long start_pfn = start >> PAGE_SHIFT; 127 unsigned long start_pfn = start >> PAGE_SHIFT;
128 unsigned long nr_pages = size >> PAGE_SHIFT; 128 unsigned long nr_pages = size >> PAGE_SHIFT;
129 129
130 start += KERNELBASE;
131 create_section_mapping(start, start + size);
132
130 /* this should work for most non-highmem platforms */ 133 /* this should work for most non-highmem platforms */
131 zone = pgdata->node_zones; 134 zone = pgdata->node_zones;
132 135