From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Rafael J. Wysocki" Subject: Re: [PATCH] ACPI / init: Run acpi_early_init() before timekeeping_init() Date: Wed, 15 Jan 2014 14:24:04 +0100 Message-ID: <3042669.sJyHAYrJIM@vostro.rjw.lan> References: <1389770748-32698-1-git-send-email-jlee@suse.com> <52D67C3B.4050503@zytor.com> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7Bit Return-path: In-Reply-To: <52D67C3B.4050503-YMNOUZJC4hwAvxtiuMwx3w@public.gmane.org> Sender: linux-efi-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: "H. Peter Anvin" Cc: "Lee, Chun-Yi" , Alessandro Zummo , Matt Fleming , Matthew Garrett , Elliott-VXdhtT5mjnY@public.gmane.org, samer.el-haj-mahmoud-VXdhtT5mjnY@public.gmane.org, Oliver Neukum , werner-IBi9RG/b67k@public.gmane.org, trenn-l3A5Bk7waGM@public.gmane.org, JBeulich-IBi9RG/b67k@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, rtc-linux-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org, x86-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org, "linux-efi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org" , linux-acpi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, "Lee, Chun-Yi" , Borislav Petkov List-Id: linux-efi@vger.kernel.org On Wednesday, January 15, 2014 04:16:59 AM H. Peter Anvin wrote: > Rafael, you want to take this one? Yes, I can take it. Thanks! > On 01/14/2014 11:25 PM, Lee, Chun-Yi wrote: > > 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(). > > > > v2: > > Move acpi_early_init() before timekeeping_init() to prepare setting > > system clock with ACPI TAD. > > > > v1: > > Rafael J. Wysocki > > ACPI / init: Run acpi_early_init() before efi_enter_virtual_mode() > > > > Cc: Rafael J. Wysocki > > Cc: Matt Fleming > > Cc: H. Peter Anvin > > Cc: Borislav Petkov > > Cc: Matthew Garrett > > Tested-by: Toshi Kani > > Signed-off-by: Lee, Chun-Yi > > --- > > init/main.c | 2 +- > > 1 files changed, 1 insertions(+), 1 deletions(-) > > > > diff --git a/init/main.c b/init/main.c > > index febc511..b6d93c8 100644 > > --- a/init/main.c > > +++ b/init/main.c > > @@ -565,6 +565,7 @@ asmlinkage void __init start_kernel(void) > > init_timers(); > > hrtimers_init(); > > softirq_init(); > > + acpi_early_init(); > > timekeeping_init(); > > time_init(); > > sched_clock_postinit(); > > @@ -641,7 +642,6 @@ asmlinkage void __init start_kernel(void) > > > > check_bugs(); > > > > - acpi_early_init(); /* before LAPIC and SMP init */ > > sfi_init_late(); > > > > if (efi_enabled(EFI_RUNTIME_SERVICES)) { > > > -- I speak only for myself. Rafael J. Wysocki, Intel Open Source Technology Center.