summaryrefslogtreecommitdiff
path: root/arch/x86/platform/efi/quirks.c
diff options
context:
space:
mode:
authorStephen Rothwell <sfr@canb.auug.org.au>2023-05-18 11:52:20 +1000
committerStephen Rothwell <sfr@canb.auug.org.au>2023-05-18 11:52:20 +1000
commita2045f1d543effbd58f585f21b604decedd6058a (patch)
tree418402cc206dd13de8dd3e44dcb53b1f6ee1326f /arch/x86/platform/efi/quirks.c
parentd6c80d0be0e37e0418cf1fd3a9399cb1d054457d (diff)
parentd86ff3333cb1d5f42d8898fb5fdb304e143c0237 (diff)
downloadlinux-next-a2045f1d543effbd58f585f21b604decedd6058a.tar.gz
Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/efi/efi.git
Diffstat (limited to 'arch/x86/platform/efi/quirks.c')
-rw-r--r--arch/x86/platform/efi/quirks.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/x86/platform/efi/quirks.c b/arch/x86/platform/efi/quirks.c
index b0b848d6933a..f0cc00032751 100644
--- a/arch/x86/platform/efi/quirks.c
+++ b/arch/x86/platform/efi/quirks.c
@@ -114,6 +114,14 @@ void efi_delete_dummy_variable(void)
EFI_VARIABLE_RUNTIME_ACCESS, 0, NULL);
}
+u64 efivar_reserved_space(void)
+{
+ if (efi_no_storage_paranoia)
+ return 0;
+ return EFI_MIN_RESERVE;
+}
+EXPORT_SYMBOL_GPL(efivar_reserved_space);
+
/*
* In the nonblocking case we do not attempt to perform garbage
* collection if we do not have enough free space. Rather, we do the