Skip to content

Commit 23721c8

Browse files
rpptsuryasaimadhu
authored andcommitted
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
1 parent 1a6a904 commit 23721c8

2 files changed

Lines changed: 0 additions & 19 deletions

File tree

arch/x86/include/asm/crash.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,4 @@ int crash_setup_memmap_entries(struct kimage *image,
99
struct boot_params *params);
1010
void crash_smp_send_stop(void);
1111

12-
#ifdef CONFIG_KEXEC_CORE
13-
void __init crash_reserve_low_1M(void);
14-
#else
15-
static inline void __init crash_reserve_low_1M(void) { }
16-
#endif
17-
1812
#endif /* _ASM_X86_CRASH_H */

arch/x86/kernel/crash.c

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -70,19 +70,6 @@ static inline void cpu_crash_vmclear_loaded_vmcss(void)
7070
rcu_read_unlock();
7171
}
7272

73-
/*
74-
* When the crashkernel option is specified, only use the low
75-
* 1M for the real mode trampoline.
76-
*/
77-
void __init crash_reserve_low_1M(void)
78-
{
79-
if (cmdline_find_option(boot_command_line, "crashkernel", NULL, 0) < 0)
80-
return;
81-
82-
memblock_reserve(0, 1<<20);
83-
pr_info("Reserving the low 1M of memory for crashkernel\n");
84-
}
85-
8673
#if defined(CONFIG_SMP) && defined(CONFIG_X86_LOCAL_APIC)
8774

8875
static void kdump_nmi_callback(int cpu, struct pt_regs *regs)

0 commit comments

Comments
 (0)