xen: re-register runstate area earlier on resume.
commitbe012920ecba161ad20303a3f6d9e96c58cf97c7
authorIan Campbell <Ian.Campbell@citrix.com>
Sat, 21 Nov 2009 00:35:55 +0000 (21 08:35 +0800)
committerJeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Thu, 3 Dec 2009 19:14:50 +0000 (3 11:14 -0800)
treeeb14f70bc852829c55fab84e28220f525379c3f2
parentae7888012969355a548372e99b066d9e31153b62
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>
arch/x86/xen/enlighten.c
arch/x86/xen/time.c
arch/x86/xen/xen-ops.h