Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 86cc653b authored by Roy Franz's avatar Roy Franz Committed by Matt Fleming
Browse files

efi: Rename __get_map() to efi_get_memory_map()



Rename function in preparation for making it more flexible
and sharing it.

Signed-off-by: default avatarRoy Franz <roy.franz@linaro.org>
Signed-off-by: default avatarMatt Fleming <matt.fleming@intel.com>
parent 5fef3870
Loading
Loading
Loading
Loading
+6 −6
Original line number Diff line number Diff line
@@ -46,7 +46,7 @@ static void efi_printk(efi_system_table_t *sys_table_arg, char *str)
}


static efi_status_t __get_map(efi_system_table_t *sys_table_arg,
static efi_status_t efi_get_memory_map(efi_system_table_t *sys_table_arg,
				       efi_memory_desc_t **map,
				       unsigned long *map_size,
				       unsigned long *desc_size)
@@ -97,7 +97,7 @@ static efi_status_t efi_high_alloc(efi_system_table_t *sys_table_arg,
	u64 max_addr = 0;
	int i;

	status = __get_map(sys_table_arg, &map, &map_size, &desc_size);
	status = efi_get_memory_map(sys_table_arg, &map, &map_size, &desc_size);
	if (status != EFI_SUCCESS)
		goto fail;

@@ -183,7 +183,7 @@ static efi_status_t efi_low_alloc(efi_system_table_t *sys_table_arg,
	unsigned long nr_pages;
	int i;

	status = __get_map(sys_table_arg, &map, &map_size, &desc_size);
	status = efi_get_memory_map(sys_table_arg, &map, &map_size, &desc_size);
	if (status != EFI_SUCCESS)
		goto fail;