Skip to content

Commit 720dff7

Browse files
Sebastian Andrzej Siewiorardbiesheuvel
authored andcommitted
efi: Allow efi=runtime
In case the command line option "efi=noruntime" is default at built-time, the user could overwrite its state by `efi=runtime' and allow it again. This is useful on PREEMPT_RT where "efi=noruntime" is default and the user might need to alter the boot order for instance. Acked-by: Thomas Gleixner <[email protected]> Signed-off-by: Sebastian Andrzej Siewior <[email protected]> Signed-off-by: Ard Biesheuvel <[email protected]>
1 parent d9f283a commit 720dff7

File tree

1 file changed

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

1 file changed

+3
-0
lines changed

drivers/firmware/efi/efi.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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)