Skip to content

Commit b8f80ba

Browse files
Ard Biesheuvelgregkh
authored andcommitted
efi: Expose non-blocking set_variable() wrapper to efivars
commit 9c6672a upstream. Commit 6d80dba ("efi: Provide a non-blocking SetVariable() operation") implemented a non-blocking alternative for the UEFI SetVariable() invocation performed by efivars, since it may occur in atomic context. However, this version of the function was never exposed via the efivars struct, so the non-blocking versions was not actually callable. Fix that. Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Signed-off-by: Matt Fleming <matt@codeblueprint.co.uk> Cc: Borislav Petkov <bp@alien8.de> Cc: Brian Gerst <brgerst@gmail.com> Cc: Denys Vlasenko <dvlasenk@redhat.com> Cc: H. Peter Anvin <hpa@zytor.com> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: linux-efi@vger.kernel.org Fixes: 6d80dba ("efi: Provide a non-blocking SetVariable() operation") Link: http://lkml.kernel.org/r/1454364428-494-2-git-send-email-matt@codeblueprint.co.uk Signed-off-by: Ingo Molnar <mingo@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 513f5c3 commit b8f80ba

File tree

1 file changed

+1
-0
lines changed
  • drivers/firmware/efi

1 file changed

+1
-0
lines changed

drivers/firmware/efi/efi.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,7 @@ static int generic_ops_register(void)
180180
{
181181
generic_ops.get_variable = efi.get_variable;
182182
generic_ops.set_variable = efi.set_variable;
183+
generic_ops.set_variable_nonblocking = efi.set_variable_nonblocking;
183184
generic_ops.get_next_variable = efi.get_next_variable;
184185
generic_ops.query_variable_store = efi_query_variable_store;
185186

0 commit comments

Comments
 (0)