Skip to content

Commit 93351d2

Browse files
committed
Merge tag 'efi-next-for-v5.16' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull EFI updates from Borislav Petkov: "The last EFI pull request which is forwarded through the tip tree, for v5.16. From now on, Ard will be sending stuff directly. Disable EFI runtime services by default on PREEMPT_RT, while adding the ability to re-enable them on demand by passing efi=runtime on the command line" * tag 'efi-next-for-v5.16' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: efi: Allow efi=runtime efi: Disable runtime services on RT
2 parents fe35415 + 720dff7 commit 93351d2

File tree

1 file changed

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

1 file changed

+4
-1
lines changed

drivers/firmware/efi/efi.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ struct mm_struct efi_mm = {
6666

6767
struct workqueue_struct *efi_rts_wq;
6868

69-
static bool disable_runtime;
69+
static bool disable_runtime = IS_ENABLED(CONFIG_PREEMPT_RT);
7070
static int __init setup_noefi(char *arg)
7171
{
7272
disable_runtime = true;
@@ -97,6 +97,9 @@ static int __init parse_efi_cmdline(char *str)
9797
if (parse_option_str(str, "noruntime"))
9898
disable_runtime = true;
9999

100+
if (parse_option_str(str, "runtime"))
101+
disable_runtime = false;
102+
100103
if (parse_option_str(str, "nosoftreserve"))
101104
set_bit(EFI_MEM_NO_SOFT_RESERVE, &efi.flags);
102105

0 commit comments

Comments
 (0)