diff options
author | Paul Mackerras <paulus@samba.org> | 2005-10-10 06:49:07 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2005-10-10 06:49:07 -0400 |
commit | a432403a89646614252c3bb6dfbe897c8312ab35 (patch) | |
tree | f646814ab9c75374533abfe9c2182e4b08a0606c /arch/ppc64/kernel/prom.c | |
parent | 9f04b9e327c495f8ddbf89c08da6cbe626e1b1b3 (diff) |
ppc64: Use the merged lmb routines
The only real change here is that lmb_enforce_memory_limit now takes
the memory_limit as a parameter instead of as a global variable.
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/ppc64/kernel/prom.c')
-rw-r--r-- | arch/ppc64/kernel/prom.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/ppc64/kernel/prom.c b/arch/ppc64/kernel/prom.c index 7035deb6de92..a0866f12647f 100644 --- a/arch/ppc64/kernel/prom.c +++ b/arch/ppc64/kernel/prom.c | |||
@@ -78,6 +78,7 @@ typedef int interpret_func(struct device_node *, unsigned long *, | |||
78 | extern struct rtas_t rtas; | 78 | extern struct rtas_t rtas; |
79 | extern struct lmb lmb; | 79 | extern struct lmb lmb; |
80 | extern unsigned long klimit; | 80 | extern unsigned long klimit; |
81 | extern unsigned long memory_limit; | ||
81 | 82 | ||
82 | static int __initdata dt_root_addr_cells; | 83 | static int __initdata dt_root_addr_cells; |
83 | static int __initdata dt_root_size_cells; | 84 | static int __initdata dt_root_size_cells; |
@@ -1063,7 +1064,7 @@ static int __init early_init_dt_scan_chosen(unsigned long node, | |||
1063 | { | 1064 | { |
1064 | u32 *prop; | 1065 | u32 *prop; |
1065 | u64 *prop64; | 1066 | u64 *prop64; |
1066 | extern unsigned long memory_limit, tce_alloc_start, tce_alloc_end; | 1067 | extern unsigned long tce_alloc_start, tce_alloc_end; |
1067 | 1068 | ||
1068 | DBG("search \"chosen\", depth: %d, uname: %s\n", depth, uname); | 1069 | DBG("search \"chosen\", depth: %d, uname: %s\n", depth, uname); |
1069 | 1070 | ||
@@ -1237,7 +1238,7 @@ void __init early_init_devtree(void *params) | |||
1237 | lmb_init(); | 1238 | lmb_init(); |
1238 | scan_flat_dt(early_init_dt_scan_root, NULL); | 1239 | scan_flat_dt(early_init_dt_scan_root, NULL); |
1239 | scan_flat_dt(early_init_dt_scan_memory, NULL); | 1240 | scan_flat_dt(early_init_dt_scan_memory, NULL); |
1240 | lmb_enforce_memory_limit(); | 1241 | lmb_enforce_memory_limit(memory_limit); |
1241 | lmb_analyze(); | 1242 | lmb_analyze(); |
1242 | systemcfg->physicalMemorySize = lmb_phys_mem_size(); | 1243 | systemcfg->physicalMemorySize = lmb_phys_mem_size(); |
1243 | lmb_reserve(0, __pa(klimit)); | 1244 | lmb_reserve(0, __pa(klimit)); |