efi: memmap: Move EFI fake memmap support into x86 arch tree
authorArd Biesheuvel <ardb@kernel.org>
Sat, 1 Oct 2022 16:38:15 +0000 (18:38 +0200)
committerArd Biesheuvel <ardb@kernel.org>
Fri, 18 Nov 2022 08:14:09 +0000 (09:14 +0100)
commit4059ba656ce5c13c8ca345955712152ae41420c8
tree41b871969d78943c1d7d1b0dcf096ade94bb1b36
parent75e1a2460d79566bf1e43e5a3a7a9039510a82e0
efi: memmap: Move EFI fake memmap support into x86 arch tree

The EFI fake memmap support is specific to x86, which manipulates the
EFI memory map in various different ways after receiving it from the EFI
stub. On other architectures, we have managed to push back on this, and
the EFI memory map is kept pristine.

So let's move the fake memmap code into the x86 arch tree, where it
arguably belongs.

Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
arch/x86/Kconfig
arch/x86/include/asm/efi.h
arch/x86/kernel/setup.c
arch/x86/platform/efi/Makefile
arch/x86/platform/efi/fake_mem.c [new file with mode: 0644]
drivers/firmware/efi/Kconfig
drivers/firmware/efi/Makefile
drivers/firmware/efi/fake_mem.c [deleted file]
drivers/firmware/efi/fake_mem.h [deleted file]
drivers/firmware/efi/x86_fake_mem.c [deleted file]
include/linux/efi.h