aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/xen/enlighten.c
diff options
context:
space:
mode:
authorIan Campbell <Ian.Campbell@citrix.com>2009-11-20 19:35:55 -0500
committerJeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>2009-12-03 14:14:50 -0500
commitbe012920ecba161ad20303a3f6d9e96c58cf97c7 (patch)
treeeb14f70bc852829c55fab84e28220f525379c3f2 /arch/x86/xen/enlighten.c
parentae7888012969355a548372e99b066d9e31153b62 (diff)
xen: re-register runstate area earlier on resume.
This is necessary to ensure the runstate area is available to xen_sched_clock before any calls to printk which will require it in order to provide a timestamp. I chose to pull the xen_setup_runstate_info out of xen_time_init into the caller in order to maintain parity with calling xen_setup_runstate_info separately from calling xen_time_resume. Signed-off-by: Ian Campbell <ian.campbell@citrix.com> Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com> Cc: Stable Kernel <stable@kernel.org>
Diffstat (limited to 'arch/x86/xen/enlighten.c')
-rw-r--r--arch/x86/xen/enlighten.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/x86/xen/enlighten.c b/arch/x86/xen/enlighten.c
index dfbf70e65860..cb61f77e4496 100644
--- a/arch/x86/xen/enlighten.c
+++ b/arch/x86/xen/enlighten.c
@@ -148,6 +148,8 @@ void xen_vcpu_restore(void)
148 HYPERVISOR_vcpu_op(VCPUOP_down, cpu, NULL)) 148 HYPERVISOR_vcpu_op(VCPUOP_down, cpu, NULL))
149 BUG(); 149 BUG();
150 150
151 xen_setup_runstate_info(cpu);
152
151 xen_vcpu_setup(cpu); 153 xen_vcpu_setup(cpu);
152 154
153 if (other_cpu && 155 if (other_cpu &&