]> git.baikalelectronics.ru Git - kernel.git/commit
efi: pstore: Omit efivars caching EFI varstore access layer
authorArd Biesheuvel <ardb@kernel.org>
Mon, 20 Jun 2022 11:21:26 +0000 (13:21 +0200)
committerArd Biesheuvel <ardb@kernel.org>
Fri, 24 Jun 2022 18:40:19 +0000 (20:40 +0200)
commit4f0df09e81076cc0825758bbd41ed39e0e5369f1
tree487e7f9cf14b0a977ba2b037bf9d0a86ba29753c
parent695f81162ea42819d85d8576f0aaf30c4adfa80b
efi: pstore: Omit efivars caching EFI varstore access layer

Avoid the efivars layer and simply call the newly introduced EFI
varstore helpers instead. This simplifies the code substantially, and
also allows us to remove some hacks in the shared efivars layer that
were added for efi-pstore specifically.

In order to be able to delete the EFI variable associated with a record,
store the UTF-16 name of the variable in the pstore record's priv field.
That way, we don't have to make guesses regarding which variable the
record may have been loaded from.

Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
drivers/firmware/efi/Kconfig
drivers/firmware/efi/efi-pstore.c
drivers/firmware/efi/efivars.c
drivers/firmware/efi/vars.c
include/linux/efi.h