diff options
Diffstat (limited to 'arch/sh/kernel/machine_kexec.c')
| -rw-r--r-- | arch/sh/kernel/machine_kexec.c | 5 | 
1 files changed, 1 insertions, 4 deletions
diff --git a/arch/sh/kernel/machine_kexec.c b/arch/sh/kernel/machine_kexec.c index e2a3af31ff9..9fea49f6e66 100644 --- a/arch/sh/kernel/machine_kexec.c +++ b/arch/sh/kernel/machine_kexec.c @@ -157,9 +157,6 @@ void __init reserve_crashkernel(void)  	unsigned long long crash_size, crash_base;  	int ret; -	/* this is necessary because of memblock_phys_mem_size() */ -	memblock_analyze(); -  	ret = parse_crashkernel(boot_command_line, memblock_phys_mem_size(),  			&crash_size, &crash_base);  	if (ret == 0 && crash_size > 0) { @@ -170,7 +167,7 @@ void __init reserve_crashkernel(void)  	if (crashk_res.end == crashk_res.start)  		goto disable; -	crash_size = PAGE_ALIGN(crashk_res.end - crashk_res.start + 1); +	crash_size = PAGE_ALIGN(resource_size(&crashk_res));  	if (!crashk_res.start) {  		unsigned long max = memblock_end_of_DRAM() - memory_limit;  		crashk_res.start = __memblock_alloc_base(crash_size, PAGE_SIZE, max);  | 
