]> 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)
commit8fb264d37a06632f34d97b5520eb5ec6946a3506
tree487e7f9cf14b0a977ba2b037bf9d0a86ba29753c
parentfa410dcfdc2fa6524ae28535041de03eaeedf5a0
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