efi: Split out EFI memory map functions into new file
authorMatt Fleming <matt@codeblueprint.co.uk>
Mon, 29 Feb 2016 20:30:39 +0000 (20:30 +0000)
committerMatt Fleming <matt@codeblueprint.co.uk>
Fri, 9 Sep 2016 15:07:46 +0000 (16:07 +0100)
commit60863c0d1a96b740048cc7d94a2d00d6f89ba3d8
tree2b538c39017d04a50ae1d43c58fe40a5b0e446d9
parentc8c1a4c5e4ead0d2dcf0f0bcb8bdbdcf877fb3bb
efi: Split out EFI memory map functions into new file

Also move the functions from the EFI fake mem driver since future
patches will require access to the memmap insertion code even if
CONFIG_EFI_FAKE_MEM isn't enabled.

This will be useful when we need to build custom EFI memory maps to
allow drivers to mark regions as reserved.

Tested-by: Dave Young <dyoung@redhat.com> [kexec/kdump]
Tested-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> [arm]
Acked-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Cc: Leif Lindholm <leif.lindholm@linaro.org>
Cc: Peter Jones <pjones@redhat.com>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Taku Izumi <izumi.taku@jp.fujitsu.com>
Signed-off-by: Matt Fleming <matt@codeblueprint.co.uk>
drivers/firmware/efi/Makefile
drivers/firmware/efi/efi.c
drivers/firmware/efi/fake_mem.c
drivers/firmware/efi/memmap.c [new file with mode: 0644]
include/linux/efi.h