]> asedeno.scripts.mit.edu Git - linux.git/commit
efi/runtime-wrappers: Add a nonblocking version of QueryVariableInfo()
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Mon, 1 Feb 2016 22:06:57 +0000 (22:06 +0000)
committerIngo Molnar <mingo@kernel.org>
Wed, 3 Feb 2016 10:31:03 +0000 (11:31 +0100)
commitd3cac1f83c631b9fe5edaebcba49f6989bfff089
tree440d0dc52ed92bb33d5bd41a3a779ac74a6c385b
parent70d2a3cf2f4ae2e93b7a661842d84c2b5132cee7
efi/runtime-wrappers: Add a nonblocking version of QueryVariableInfo()

This introduces a new runtime wrapper for the
QueryVariableInfo() UEFI Runtime Service, which gives up
immediately rather than spins on failure to grab the efi_runtime
spinlock.

This is required in the non-blocking path of the efi-pstore
code.

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
Link: http://lkml.kernel.org/r/1454364428-494-4-git-send-email-matt@codeblueprint.co.uk
Signed-off-by: Ingo Molnar <mingo@kernel.org>
drivers/firmware/efi/runtime-wrappers.c
include/linux/efi.h