diff options
| author | Ard Biesheuvel <ardb@kernel.org> | 2022-10-01 19:09:24 +0200 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-07-05 09:32:00 +0200 |
| commit | 0d01140e921757455730dcb6c00e45a0383f1716 (patch) | |
| tree | d9d991d862574f898720376741bef6b607f8270d /include | |
| parent | 7ad4e0a4f61c57c3ca291ee010a9d677d0199fba (diff) | |
| download | linux-0d01140e921757455730dcb6c00e45a0383f1716.tar.gz linux-0d01140e921757455730dcb6c00e45a0383f1716.tar.bz2 linux-0d01140e921757455730dcb6c00e45a0383f1716.zip | |
efi: memmap: Move manipulation routines into x86 arch tree
commit fdc6d38d64a20c542b1867ebeb8dd03b98829336 upstream.
The EFI memory map is a description of the memory layout as provided by
the firmware, and only x86 manipulates it in various different ways for
its own memory bookkeeping. So let's move the memmap routines that are
only used by x86 into the x86 arch tree.
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/efi.h | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/include/linux/efi.h b/include/linux/efi.h index de6d6558a4d3..a849b533be5b 100644 --- a/include/linux/efi.h +++ b/include/linux/efi.h @@ -709,18 +709,10 @@ static inline efi_status_t efi_query_variable_store(u32 attributes, #endif extern void __iomem *efi_lookup_mapped_addr(u64 phys_addr); -extern int __init efi_memmap_alloc(unsigned int num_entries, - struct efi_memory_map_data *data); -extern void __efi_memmap_free(u64 phys, unsigned long size, - unsigned long flags); +extern int __init __efi_memmap_init(struct efi_memory_map_data *data); extern int __init efi_memmap_init_early(struct efi_memory_map_data *data); extern int __init efi_memmap_init_late(phys_addr_t addr, unsigned long size); extern void __init efi_memmap_unmap(void); -extern int __init efi_memmap_install(struct efi_memory_map_data *data); -extern int __init efi_memmap_split_count(efi_memory_desc_t *md, - struct range *range); -extern void __init efi_memmap_insert(struct efi_memory_map *old_memmap, - void *buf, struct efi_mem_range *mem); #ifdef CONFIG_EFI_ESRT extern void __init efi_esrt_init(void); |
