Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 359110
b: refs/heads/master
c: fb834c7
h: refs/heads/master
v: v3
  • Loading branch information
Matt Fleming authored and H. Peter Anvin committed Feb 20, 2013
1 parent 108056e commit 0cd31fe
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 27cf929845b10043f2257693c7d179a9e0b1980e
refs/heads/master: fb834c7acc5e140cf4f9e86da93a66de8c0514da
5 changes: 3 additions & 2 deletions trunk/arch/x86/platform/efi/efi.c
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,10 @@ int efi_enabled(int facility)
}
EXPORT_SYMBOL(efi_enabled);

static bool disable_runtime = false;
static int __init setup_noefi(char *arg)
{
clear_bit(EFI_RUNTIME_SERVICES, &x86_efi_facility);
disable_runtime = true;
return 0;
}
early_param("noefi", setup_noefi);
Expand Down Expand Up @@ -734,7 +735,7 @@ void __init efi_init(void)
if (!efi_is_native())
pr_info("No EFI runtime due to 32/64-bit mismatch with kernel\n");
else {
if (efi_runtime_init())
if (disable_runtime || efi_runtime_init())
return;
set_bit(EFI_RUNTIME_SERVICES, &x86_efi_facility);
}
Expand Down

0 comments on commit 0cd31fe

Please sign in to comment.