]> git.baikalelectronics.ru Git - kernel.git/commit
efi: pstore: move workqueue handling out of efivars
authorArd Biesheuvel <ardb@kernel.org>
Wed, 23 Sep 2020 08:07:49 +0000 (10:07 +0200)
committerArd Biesheuvel <ardb@kernel.org>
Tue, 29 Sep 2020 17:40:57 +0000 (19:40 +0200)
commit8e13dcfb616616baac4ab55636799447e5081665
tree89c10bc6f1d281ccfbbb93f00438f161e7ba8881
parent1b0851f0a7a15dc387e02b5c2d27b737feb6a7d9
efi: pstore: move workqueue handling out of efivars

The worker thread that gets kicked off to sync the state of the
EFI variable list is only used by the EFI pstore implementation,
and is defined in its source file. So let's move its scheduling
there as well. Since our efivar_init() scan will bail on duplicate
entries, there is no need to disable the workqueue like we did
before, so we can run it unconditionally.

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