diff options
author | 2016-06-20 14:36:51 +0100 | |
---|---|---|
committer | 2016-09-09 16:06:37 +0100 | |
commit | ab72a27da4c6c19b0e3d6d7556fdd4afb581c8ac (patch) | |
tree | acb1cd132b80de200df5cce4563d624719692875 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | x86/efi: Test for EFI_MEMMAP functionality when iterating EFI memmap (diff) | |
download | linux-dev-ab72a27da4c6c19b0e3d6d7556fdd4afb581c8ac.tar.xz linux-dev-ab72a27da4c6c19b0e3d6d7556fdd4afb581c8ac.zip |
x86/efi: Consolidate region mapping logic
EFI regions are currently mapped in two separate places. The bulk of
the work is done in efi_map_regions() but when CONFIG_EFI_MIXED is
enabled the additional regions that are required when operating in
mixed mode are mapping in efi_setup_page_tables().
Pull everything into efi_map_regions() and refactor the test for
which regions should be mapped into a should_map_region() function.
Generously sprinkle comments to clarify the different cases.
Acked-by: Borislav Petkov <bp@suse.de>
Tested-by: Dave Young <dyoung@redhat.com> [kexec/kdump]
Tested-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> [arm]
Acked-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Matt Fleming <matt@codeblueprint.co.uk>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions