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 <[email protected]>
Signed-off-by: Matt Fleming <[email protected]>
This commit is contained in:
Dave Young 2014-08-14 17:15:26 +08:00 • committed by Matt Fleming
commit b2e0a54a12
4 changed files with 16 additions and 10 deletions

View file

@ -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;