]> git.baikalelectronics.ru Git - kernel.git/commit
efi: Move mem_attr_table out of struct efi
authorArd Biesheuvel <ardb@kernel.org>
Wed, 22 Jan 2020 14:05:12 +0000 (15:05 +0100)
committerArd Biesheuvel <ardb@kernel.org>
Sun, 23 Feb 2020 20:59:42 +0000 (21:59 +0100)
commitbf33958d05c97791a3a1b5c479ed27f32502a8b6
tree2c1690e992d9d73eb250e5f9122a616cc0abaaec
parent8a7cfd1963713a90b2cd5b3d5e32f0147725579d
efi: Move mem_attr_table out of struct efi

The memory attributes table is only used at init time by the core EFI
code, so there is no need to carry its address in struct efi that is
shared with the world. So move it out, and make it __ro_after_init as
well, considering that the value is set during early boot.

Tested-by: Tony Luck <tony.luck@intel.com> # arch/ia64
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
arch/x86/platform/efi/efi.c
drivers/firmware/efi/efi.c
drivers/firmware/efi/memattr.c
include/linux/efi.h