aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/firmware
diff options
context:
space:
mode:
authorDave Young <dyoung@redhat.com>2014-08-14 05:15:26 -0400
committerMatt Fleming <matt.fleming@intel.com>2014-10-03 13:40:58 -0400
commitb2e0a54a1296a91b800f316df7bef7d1905e4fd0 (patch)
treeda46563d0e34f6d4d33c4952d73bb22576d47c6d /drivers/firmware
parent1282278ee00b41f314d1bce058a6b28b1bd49c21 (diff)
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.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/drivers/firmware/efi/efi.c b/drivers/firmware/efi/efi.c
index 64ecbb501c50..c8f01a73edb5 100644
--- a/drivers/firmware/efi/efi.c
+++ b/drivers/firmware/efi/efi.c
@@ -41,6 +41,19 @@ struct efi __read_mostly efi = {
41}; 41};
42EXPORT_SYMBOL(efi); 42EXPORT_SYMBOL(efi);
43 43
44static bool disable_runtime;
45static int __init setup_noefi(char *arg)
46{
47 disable_runtime = true;
48 return 0;
49}
50early_param("noefi", setup_noefi);
51
52bool efi_runtime_disabled(void)
53{
54 return disable_runtime;
55}
56
44static struct kobject *efi_kobj; 57static struct kobject *efi_kobj;
45static struct kobject *efivars_kobj; 58static struct kobject *efivars_kobj;
46 59