diff options
author | Dan Williams <dan.j.williams@intel.com> | 2020-01-13 20:22:42 +0300 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2020-01-20 10:14:28 +0300 |
commit | 26c0e44a213b272abec0e8fba4a5a2801f95208e (patch) | |
tree | 1c8fb07d33889356ee5a9c9a27e7df6cab9d25b1 /include | |
parent | 62b605b53ad4dc6d9ec11ab4c7aa61df10b76af6 (diff) | |
download | linux-26c0e44a213b272abec0e8fba4a5a2801f95208e.tar.xz |
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
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/efi.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/linux/efi.h b/include/linux/efi.h index 7e8e25b1d11c..f117d68c314e 100644 --- a/include/linux/efi.h +++ b/include/linux/efi.h @@ -767,6 +767,7 @@ struct efi_memory_map_data { unsigned long size; unsigned long desc_version; unsigned long desc_size; + unsigned long flags; }; struct efi_memory_map { @@ -776,7 +777,8 @@ struct efi_memory_map { int nr_map; unsigned long desc_version; unsigned long desc_size; - bool late; +#define EFI_MEMMAP_LATE (1UL << 0) + unsigned long flags; }; struct efi_mem_range { |