diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2013-02-26 22:45:29 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-02-26 22:45:29 -0500 |
commit | 2003cd90c473f66d34114bc61c49e7d74d370894 (patch) | |
tree | df966071c6721c30cb60fb94a8cfbbbea40827e9 /arch/x86/platform | |
parent | 24e55910e4801d772f95becde20b526b8b10388d (diff) | |
parent | a8aed3e0752b4beb2e37cbed6df69faae88268da (diff) |
Merge branch 'x86-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull x86 fixes from Ingo Molnar.
* 'x86-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
x86/mm/pageattr: Prevent PSE and GLOABL leftovers to confuse pmd/pte_present and pmd_huge
Revert "x86, mm: Make spurious_fault check explicitly check explicitly check the PRESENT bit"
x86/mm/numa: Don't check if node is NUMA_NO_NODE
x86, efi: Make "noefi" really disable EFI runtime serivces
x86/apic: Fix parsing of the 'lapic' cmdline option
Diffstat (limited to 'arch/x86/platform')
-rw-r--r-- | arch/x86/platform/efi/efi.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/x86/platform/efi/efi.c b/arch/x86/platform/efi/efi.c index 70b2a3a305d6..2f81db40d7ca 100644 --- a/arch/x86/platform/efi/efi.c +++ b/arch/x86/platform/efi/efi.c | |||
@@ -85,9 +85,10 @@ int efi_enabled(int facility) | |||
85 | } | 85 | } |
86 | EXPORT_SYMBOL(efi_enabled); | 86 | EXPORT_SYMBOL(efi_enabled); |
87 | 87 | ||
88 | static bool disable_runtime = false; | ||
88 | static int __init setup_noefi(char *arg) | 89 | static int __init setup_noefi(char *arg) |
89 | { | 90 | { |
90 | clear_bit(EFI_RUNTIME_SERVICES, &x86_efi_facility); | 91 | disable_runtime = true; |
91 | return 0; | 92 | return 0; |
92 | } | 93 | } |
93 | early_param("noefi", setup_noefi); | 94 | early_param("noefi", setup_noefi); |
@@ -734,7 +735,7 @@ void __init efi_init(void) | |||
734 | if (!efi_is_native()) | 735 | if (!efi_is_native()) |
735 | pr_info("No EFI runtime due to 32/64-bit mismatch with kernel\n"); | 736 | pr_info("No EFI runtime due to 32/64-bit mismatch with kernel\n"); |
736 | else { | 737 | else { |
737 | if (efi_runtime_init()) | 738 | if (disable_runtime || efi_runtime_init()) |
738 | return; | 739 | return; |
739 | set_bit(EFI_RUNTIME_SERVICES, &x86_efi_facility); | 740 | set_bit(EFI_RUNTIME_SERVICES, &x86_efi_facility); |
740 | } | 741 | } |