xen: register runstate info for boot CPU early
authorJeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Tue, 24 Nov 2009 17:38:25 +0000 (09:38 -0800)
committerJeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Thu, 3 Dec 2009 19:14:53 +0000 (11:14 -0800)
printk timestamping uses sched_clock, which in turn relies on runstate
info under Xen.  So make sure we set it up before any printks can
be called.

Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Cc: Stable Kernel <stable@kernel.org>
arch/x86/xen/enlighten.c

index a7b49f99a1307e33c15e49b262a0ed84a95e3ff7..79f97383cde3be99da33f092c7604876be896dab 100644 (file)
@@ -1181,6 +1181,8 @@ asmlinkage void __init xen_start_kernel(void)
 
        xen_raw_console_write("about to get started...\n");
 
+       xen_setup_runstate_info(0);
+
        /* Start the world */
 #ifdef CONFIG_X86_32
        i386_start_kernel();