diff options
author | Dave Young <dyoung@redhat.com> | 2014-08-14 13:15:28 +0400 |
---|---|---|
committer | Matt Fleming <matt.fleming@intel.com> | 2014-10-03 21:40:59 +0400 |
commit | 5ae3683c380e78aebc60d710617ba2c0dccc9e84 (patch) | |
tree | 27bbb57319052f020bd06f11dcfdd1d61538bfab /drivers | |
parent | 6ccc72b87b83ece31c2a75bbe07f440b0378f7a9 (diff) | |
download | linux-5ae3683c380e78aebc60d710617ba2c0dccc9e84.tar.xz |
efi: Add kernel param efi=noruntime
noefi kernel param means actually disabling efi runtime, Per suggestion
from Leif Lindholm efi=noruntime should be better. But since noefi is
already used in X86 thus just adding another param efi=noruntime for
same purpose.
Signed-off-by: Dave Young <dyoung@redhat.com>
Signed-off-by: Matt Fleming <matt.fleming@intel.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/firmware/efi/efi.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/firmware/efi/efi.c b/drivers/firmware/efi/efi.c index c8f01a73edb5..cebfa36a27ae 100644 --- a/drivers/firmware/efi/efi.c +++ b/drivers/firmware/efi/efi.c @@ -54,6 +54,15 @@ bool efi_runtime_disabled(void) return disable_runtime; } +static int __init parse_efi_cmdline(char *str) +{ + if (parse_option_str(str, "noruntime")) + disable_runtime = true; + + return 0; +} +early_param("efi", parse_efi_cmdline); + static struct kobject *efi_kobj; static struct kobject *efivars_kobj; |