xen: re-register runstate area earlier on resume.
authorIan Campbell <Ian.Campbell@citrix.com>
Sat, 21 Nov 2009 00:35:55 +0000 (08:35 +0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 18 Dec 2009 22:04:45 +0000 (14:04 -0800)
commite27d65dec237be523c3e3c8b193007243367aad9
tree4a6345830322dc219970a7ea4d7017220c297a6c
parentfd28fac739e3a2e2be8138fb10ce554f74a50cae
xen: re-register runstate area earlier on resume.

commit be012920ecba161ad20303a3f6d9e96c58cf97c7 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/x86/xen/enlighten.c
arch/x86/xen/time.c
arch/x86/xen/xen-ops.h