diff options
author | Dave Young <dyoung@redhat.com> | 2014-08-14 17:15:26 +0800 |
---|---|---|
committer | Matt Fleming <matt.fleming@intel.com> | 2014-10-03 18:40:58 +0100 |
commit | b2e0a54a1296a91b800f316df7bef7d1905e4fd0 (patch) | |
tree | da46563d0e34f6d4d33c4952d73bb22576d47c6d /drivers/firmware | |
parent | 1282278ee00b41f314d1bce058a6b28b1bd49c21 (diff) | |
download | op-kernel-dev-b2e0a54a1296a91b800f316df7bef7d1905e4fd0.zip op-kernel-dev-b2e0a54a1296a91b800f316df7bef7d1905e4fd0.tar.gz |
efi: Move noefi early param code out of x86 arch code
noefi param can be used for arches other than X86 later, thus move it
out of x86 platform code.
Signed-off-by: Dave Young <dyoung@redhat.com>
Signed-off-by: Matt Fleming <matt.fleming@intel.com>
Diffstat (limited to 'drivers/firmware')
-rw-r--r-- | drivers/firmware/efi/efi.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/drivers/firmware/efi/efi.c b/drivers/firmware/efi/efi.c index 64ecbb5..c8f01a7 100644 --- a/drivers/firmware/efi/efi.c +++ b/drivers/firmware/efi/efi.c @@ -41,6 +41,19 @@ struct efi __read_mostly efi = { }; EXPORT_SYMBOL(efi); +static bool disable_runtime; +static int __init setup_noefi(char *arg) +{ + disable_runtime = true; + return 0; +} +early_param("noefi", setup_noefi); + +bool efi_runtime_disabled(void) +{ + return disable_runtime; +} + static struct kobject *efi_kobj; static struct kobject *efivars_kobj; |