]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
efi: Add a flags parameter to efi_memory_map
authorDan Williams <dan.j.williams@intel.com>
Mon, 13 Jan 2020 17:22:42 +0000 (18:22 +0100)
committerIngo Molnar <mingo@kernel.org>
Mon, 20 Jan 2020 07:14:28 +0000 (08:14 +0100)
commit26c0e44a213b272abec0e8fba4a5a2801f95208e
tree1c8fb07d33889356ee5a9c9a27e7df6cab9d25b1
parent62b605b53ad4dc6d9ec11ab4c7aa61df10b76af6
efi: Add a flags parameter to efi_memory_map

In preparation for garbage collecting dynamically allocated EFI memory
maps, where the allocation method of memblock vs slab needs to be
recalled, convert the existing 'late' flag into a 'flags' bitmask.

Arrange for the flag to be passed via 'struct efi_memory_map_data'. This
structure grows additional flags in follow-on changes.

Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://lore.kernel.org/r/20200113172245.27925-11-ardb@kernel.org
drivers/firmware/efi/memmap.c
include/linux/efi.h