]> www.infradead.org Git - users/dwmw2/linux.git/commit
x86/e820: Drop obsolete E820_TYPE_RESERVED_KERN and related code
authorMike Rapoport (Microsoft) <rppt@kernel.org>
Fri, 14 Feb 2025 09:06:51 +0000 (11:06 +0200)
committerIngo Molnar <mingo@kernel.org>
Fri, 21 Feb 2025 15:05:00 +0000 (16:05 +0100)
commitefe659ac014647eb048d62475e55cce42d8951d7
tree943dca4812ac4dcee6397cd23ac5f826c4cd0f5f
parentd45dd0a9b27ee8be7792ae186bc33ed700144224
x86/e820: Drop obsolete E820_TYPE_RESERVED_KERN and related code

E820_TYPE_RESERVED_KERN is a relict from the ancient history that was used
to early reserve setup_data, see:

  28bb22379513 ("x86: move reserve_setup_data to setup.c")

Nowadays setup_data is anyway reserved in memblock and there is no point in
carrying E820_TYPE_RESERVED_KERN that behaves exactly like E820_TYPE_RAM
but only complicates the code.

A bonus for removing E820_TYPE_RESERVED_KERN is a small but measurable
speedup of 20 microseconds in init_mem_mappings() on a VM with 32GB or RAM.

Signed-off-by: Mike Rapoport (Microsoft) <rppt@kernel.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Cc: Ard Biesheuvel <ardb@kernel.org>
Cc: Kees Cook <keescook@chromium.org>
Link: https://lore.kernel.org/r/20250214090651.3331663-5-rppt@kernel.org
arch/x86/include/asm/e820/api.h
arch/x86/include/asm/e820/types.h
arch/x86/kernel/e820.c
arch/x86/kernel/setup.c
arch/x86/kernel/tboot.c
arch/x86/mm/init_64.c