diff options
author | H. Peter Anvin <hpa@zytor.com> | 2012-08-14 12:53:38 -0400 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2012-08-14 12:58:25 -0400 |
commit | f026cfa82f628db24b8cea41b9d6202af104cecb (patch) | |
tree | 1a5e36878ad1134587220e9a3d229c5977271947 /init | |
parent | f1c6300183dbf5b9da25988e13f6f25a9e27151b (diff) |
Revert "x86-64/efi: Use EFI to deal with platform wall clock"
This reverts commit bacef661acdb634170a8faddbc1cf28e8f8b9eee.
This commit has been found to cause serious regressions on a number of
ASUS machines at the least. We probably need to provide a 1:1 map in
addition to the EFI virtual memory map in order for this to work.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Reported-and-bisected-by: Jérôme Carretero <cJ-ko@zougloub.eu>
Cc: Jan Beulich <jbeulich@suse.com>
Cc: Matt Fleming <matt.fleming@intel.com>
Cc: Matthew Garrett <mjg@redhat.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/20120805172903.5f8bb24c@zougloub.eu
Diffstat (limited to 'init')
-rw-r--r-- | init/main.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/init/main.c b/init/main.c index e60679de61c3..b28673087ac0 100644 --- a/init/main.c +++ b/init/main.c | |||
@@ -461,10 +461,6 @@ static void __init mm_init(void) | |||
461 | percpu_init_late(); | 461 | percpu_init_late(); |
462 | pgtable_cache_init(); | 462 | pgtable_cache_init(); |
463 | vmalloc_init(); | 463 | vmalloc_init(); |
464 | #ifdef CONFIG_X86 | ||
465 | if (efi_enabled) | ||
466 | efi_enter_virtual_mode(); | ||
467 | #endif | ||
468 | } | 464 | } |
469 | 465 | ||
470 | asmlinkage void __init start_kernel(void) | 466 | asmlinkage void __init start_kernel(void) |
@@ -606,6 +602,10 @@ asmlinkage void __init start_kernel(void) | |||
606 | calibrate_delay(); | 602 | calibrate_delay(); |
607 | pidmap_init(); | 603 | pidmap_init(); |
608 | anon_vma_init(); | 604 | anon_vma_init(); |
605 | #ifdef CONFIG_X86 | ||
606 | if (efi_enabled) | ||
607 | efi_enter_virtual_mode(); | ||
608 | #endif | ||
609 | thread_info_cache_init(); | 609 | thread_info_cache_init(); |
610 | cred_init(); | 610 | cred_init(); |
611 | fork_init(totalram_pages); | 611 | fork_init(totalram_pages); |