diff options
author | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2010-08-03 20:26:03 -0400 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2010-08-03 20:26:03 -0400 |
commit | 412a4ac5e9cf7fdeb6af562c25547a9b9da7674f (patch) | |
tree | a8ce13cbc9c47c99799e5e3e3ad26ba78274ee73 /arch/powerpc/kernel/machine_kexec.c | |
parent | e8e5c2155b0035b6e04f29be67f6444bc914005b (diff) | |
parent | 0c2daaafcdec726e89cbccca61d576de8429c537 (diff) |
Merge commit 'gcl/next' into next
Diffstat (limited to 'arch/powerpc/kernel/machine_kexec.c')
-rw-r--r-- | arch/powerpc/kernel/machine_kexec.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/arch/powerpc/kernel/machine_kexec.c b/arch/powerpc/kernel/machine_kexec.c index 47905c092861..dd6c141f1662 100644 --- a/arch/powerpc/kernel/machine_kexec.c +++ b/arch/powerpc/kernel/machine_kexec.c | |||
@@ -12,7 +12,7 @@ | |||
12 | #include <linux/kexec.h> | 12 | #include <linux/kexec.h> |
13 | #include <linux/reboot.h> | 13 | #include <linux/reboot.h> |
14 | #include <linux/threads.h> | 14 | #include <linux/threads.h> |
15 | #include <linux/lmb.h> | 15 | #include <linux/memblock.h> |
16 | #include <linux/of.h> | 16 | #include <linux/of.h> |
17 | #include <asm/machdep.h> | 17 | #include <asm/machdep.h> |
18 | #include <asm/prom.h> | 18 | #include <asm/prom.h> |
@@ -78,11 +78,11 @@ void __init reserve_crashkernel(void) | |||
78 | unsigned long long crash_size, crash_base; | 78 | unsigned long long crash_size, crash_base; |
79 | int ret; | 79 | int ret; |
80 | 80 | ||
81 | /* this is necessary because of lmb_phys_mem_size() */ | 81 | /* this is necessary because of memblock_phys_mem_size() */ |
82 | lmb_analyze(); | 82 | memblock_analyze(); |
83 | 83 | ||
84 | /* use common parsing */ | 84 | /* use common parsing */ |
85 | ret = parse_crashkernel(boot_command_line, lmb_phys_mem_size(), | 85 | ret = parse_crashkernel(boot_command_line, memblock_phys_mem_size(), |
86 | &crash_size, &crash_base); | 86 | &crash_size, &crash_base); |
87 | if (ret == 0 && crash_size > 0) { | 87 | if (ret == 0 && crash_size > 0) { |
88 | crashk_res.start = crash_base; | 88 | crashk_res.start = crash_base; |
@@ -145,9 +145,9 @@ void __init reserve_crashkernel(void) | |||
145 | "for crashkernel (System RAM: %ldMB)\n", | 145 | "for crashkernel (System RAM: %ldMB)\n", |
146 | (unsigned long)(crash_size >> 20), | 146 | (unsigned long)(crash_size >> 20), |
147 | (unsigned long)(crashk_res.start >> 20), | 147 | (unsigned long)(crashk_res.start >> 20), |
148 | (unsigned long)(lmb_phys_mem_size() >> 20)); | 148 | (unsigned long)(memblock_phys_mem_size() >> 20)); |
149 | 149 | ||
150 | lmb_reserve(crashk_res.start, crash_size); | 150 | memblock_reserve(crashk_res.start, crash_size); |
151 | } | 151 | } |
152 | 152 | ||
153 | int overlaps_crashkernel(unsigned long start, unsigned long size) | 153 | int overlaps_crashkernel(unsigned long start, unsigned long size) |