diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2010-05-22 14:47:18 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2010-07-27 03:48:23 -0400 |
commit | 8d717a52d1b0959128be5134dd12608e8e4f2115 (patch) | |
tree | 6bc2aca8c9b14a9b0d2f86609e63c2436b03c2d6 /arch/arm/mm | |
parent | 2778f62056ada442414392d7ccd41188bb631619 (diff) |
ARM: Convert platform reservations to use LMB rather than bootmem
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mm')
-rw-r--r-- | arch/arm/mm/init.c | 11 | ||||
-rw-r--r-- | arch/arm/mm/mm.h | 3 | ||||
-rw-r--r-- | arch/arm/mm/mmu.c | 2 | ||||
-rw-r--r-- | arch/arm/mm/nommu.c | 2 |
4 files changed, 9 insertions, 9 deletions
diff --git a/arch/arm/mm/init.c b/arch/arm/mm/init.c index 4877e06308b7..99d6bc9b89bb 100644 --- a/arch/arm/mm/init.c +++ b/arch/arm/mm/init.c | |||
@@ -271,7 +271,7 @@ static void arm_memory_present(struct meminfo *mi) | |||
271 | } | 271 | } |
272 | #endif | 272 | #endif |
273 | 273 | ||
274 | void __init arm_memblock_init(struct meminfo *mi) | 274 | void __init arm_memblock_init(struct meminfo *mi, struct machine_desc *mdesc) |
275 | { | 275 | { |
276 | int i; | 276 | int i; |
277 | 277 | ||
@@ -297,11 +297,15 @@ void __init arm_memblock_init(struct meminfo *mi) | |||
297 | 297 | ||
298 | arm_mm_memblock_reserve(); | 298 | arm_mm_memblock_reserve(); |
299 | 299 | ||
300 | /* reserve any platform specific memblock areas */ | ||
301 | if (mdesc->reserve) | ||
302 | mdesc->reserve(); | ||
303 | |||
300 | memblock_analyze(); | 304 | memblock_analyze(); |
301 | memblock_dump_all(); | 305 | memblock_dump_all(); |
302 | } | 306 | } |
303 | 307 | ||
304 | void __init bootmem_init(struct machine_desc *mdesc) | 308 | void __init bootmem_init(void) |
305 | { | 309 | { |
306 | struct meminfo *mi = &meminfo; | 310 | struct meminfo *mi = &meminfo; |
307 | unsigned long min, max_low, max_high; | 311 | unsigned long min, max_low, max_high; |
@@ -312,9 +316,6 @@ void __init bootmem_init(struct machine_desc *mdesc) | |||
312 | 316 | ||
313 | arm_bootmem_init(mi, min, max_low); | 317 | arm_bootmem_init(mi, min, max_low); |
314 | 318 | ||
315 | if (mdesc->reserve) | ||
316 | mdesc->reserve(); | ||
317 | |||
318 | /* | 319 | /* |
319 | * Sparsemem tries to allocate bootmem in memory_present(), | 320 | * Sparsemem tries to allocate bootmem in memory_present(), |
320 | * so must be done after the fixed reservations | 321 | * so must be done after the fixed reservations |
diff --git a/arch/arm/mm/mm.h b/arch/arm/mm/mm.h index fcfffae69b49..6630620380a4 100644 --- a/arch/arm/mm/mm.h +++ b/arch/arm/mm/mm.h | |||
@@ -28,6 +28,5 @@ extern void __flush_dcache_page(struct address_space *mapping, struct page *page | |||
28 | 28 | ||
29 | #endif | 29 | #endif |
30 | 30 | ||
31 | struct machine_desc; | 31 | void __init bootmem_init(void); |
32 | void __init bootmem_init(struct machine_desc *); | ||
33 | void arm_mm_memblock_reserve(void); | 32 | void arm_mm_memblock_reserve(void); |
diff --git a/arch/arm/mm/mmu.c b/arch/arm/mm/mmu.c index 833a6c3f70c0..d5541adc3520 100644 --- a/arch/arm/mm/mmu.c +++ b/arch/arm/mm/mmu.c | |||
@@ -1006,7 +1006,7 @@ void __init paging_init(struct machine_desc *mdesc) | |||
1006 | /* allocate the zero page. */ | 1006 | /* allocate the zero page. */ |
1007 | zero_page = early_alloc(PAGE_SIZE); | 1007 | zero_page = early_alloc(PAGE_SIZE); |
1008 | 1008 | ||
1009 | bootmem_init(mdesc); | 1009 | bootmem_init(); |
1010 | 1010 | ||
1011 | empty_zero_page = virt_to_page(zero_page); | 1011 | empty_zero_page = virt_to_page(zero_page); |
1012 | __flush_dcache_page(NULL, empty_zero_page); | 1012 | __flush_dcache_page(NULL, empty_zero_page); |
diff --git a/arch/arm/mm/nommu.c b/arch/arm/mm/nommu.c index 40e38fcccc7a..687d02319a41 100644 --- a/arch/arm/mm/nommu.c +++ b/arch/arm/mm/nommu.c | |||
@@ -33,7 +33,7 @@ void __init arm_mm_memblock_reserve(void) | |||
33 | */ | 33 | */ |
34 | void __init paging_init(struct machine_desc *mdesc) | 34 | void __init paging_init(struct machine_desc *mdesc) |
35 | { | 35 | { |
36 | bootmem_init(mdesc); | 36 | bootmem_init(); |
37 | } | 37 | } |
38 | 38 | ||
39 | /* | 39 | /* |