diff options
author | Mike Rapoport <rppt@linux.ibm.com> | 2021-06-01 10:53:54 +0300 |
---|---|---|
committer | Borislav Petkov <bp@suse.de> | 2021-06-07 13:14:45 +0300 |
commit | 23721c8e92f73f9f89e7362c50c2996a5c9ad483 (patch) | |
tree | 2201dfc69bab353740c23fdec7368c9704246533 /arch/x86/kernel/crash.c | |
parent | 1a6a9044b96729abacede172d7591c714a5b81d1 (diff) | |
download | linux-23721c8e92f73f9f89e7362c50c2996a5c9ad483.tar.xz |
x86/crash: Remove crash_reserve_low_1M()
The entire memory range under 1M is unconditionally reserved in
setup_arch(), so there is no need for crash_reserve_low_1M() anymore.
Remove this function.
Signed-off-by: Mike Rapoport <rppt@linux.ibm.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lkml.kernel.org/r/20210601075354.5149-4-rppt@kernel.org
Diffstat (limited to 'arch/x86/kernel/crash.c')
-rw-r--r-- | arch/x86/kernel/crash.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/arch/x86/kernel/crash.c b/arch/x86/kernel/crash.c index 54ce999ed321..e8326a8d1c5d 100644 --- a/arch/x86/kernel/crash.c +++ b/arch/x86/kernel/crash.c @@ -70,19 +70,6 @@ static inline void cpu_crash_vmclear_loaded_vmcss(void) rcu_read_unlock(); } -/* - * When the crashkernel option is specified, only use the low - * 1M for the real mode trampoline. - */ -void __init crash_reserve_low_1M(void) -{ - if (cmdline_find_option(boot_command_line, "crashkernel", NULL, 0) < 0) - return; - - memblock_reserve(0, 1<<20); - pr_info("Reserving the low 1M of memory for crashkernel\n"); -} - #if defined(CONFIG_SMP) && defined(CONFIG_X86_LOCAL_APIC) static void kdump_nmi_callback(int cpu, struct pt_regs *regs) |