]> git.baikalelectronics.ru Git - kernel.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)
commit2fd19fc8e901ec06f9ddc725bad05f6a193a0aa6
tree1c8fb07d33889356ee5a9c9a27e7df6cab9d25b1
parentc3ffba02fdbfe5dd0d8033e1f9acf7ae6fcc09b7
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