diff options
author | Lee, Chun-Yi <joeyli.kernel@gmail.com> | 2014-01-15 02:25:48 -0500 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2014-01-15 19:46:31 -0500 |
commit | 73f7d1ca32638028e3271f54616773727e2f9f26 (patch) | |
tree | 95d0e87d53d783a2f3ff63e1e3a1b2e3185ce86b /init | |
parent | 7e22e91102c6b9df7c4ae2168910e19d2bb14cd6 (diff) |
ACPI / init: Run acpi_early_init() before timekeeping_init()
This is a variant patch from Rafael J. Wysocki's
ACPI / init: Run acpi_early_init() before efi_enter_virtual_mode()
According to Matt Fleming, if acpi_early_init() was executed before
efi_enter_virtual_mode(), the EFI initialization could benefit from
it, so Rafael's patch makes that happen.
And, we want accessing ACPI TAD device to set system clock, so move
acpi_early_init() before timekeeping_init(). This final position is
also before efi_enter_virtual_mode().
Tested-by: Toshi Kani <toshi.kani@hp.com>
Signed-off-by: Lee, Chun-Yi <jlee@suse.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'init')
-rw-r--r-- | init/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/init/main.c b/init/main.c index febc511e078a..b6d93c840154 100644 --- a/init/main.c +++ b/init/main.c | |||
@@ -565,6 +565,7 @@ asmlinkage void __init start_kernel(void) | |||
565 | init_timers(); | 565 | init_timers(); |
566 | hrtimers_init(); | 566 | hrtimers_init(); |
567 | softirq_init(); | 567 | softirq_init(); |
568 | acpi_early_init(); | ||
568 | timekeeping_init(); | 569 | timekeeping_init(); |
569 | time_init(); | 570 | time_init(); |
570 | sched_clock_postinit(); | 571 | sched_clock_postinit(); |
@@ -641,7 +642,6 @@ asmlinkage void __init start_kernel(void) | |||
641 | 642 | ||
642 | check_bugs(); | 643 | check_bugs(); |
643 | 644 | ||
644 | acpi_early_init(); /* before LAPIC and SMP init */ | ||
645 | sfi_init_late(); | 645 | sfi_init_late(); |
646 | 646 | ||
647 | if (efi_enabled(EFI_RUNTIME_SERVICES)) { | 647 | if (efi_enabled(EFI_RUNTIME_SERVICES)) { |