aboutsummaryrefslogtreecommitdiffstats
path: root/xen/arch/x86/time.c
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@suse.com>2012-03-27 15:20:23 +0200
committerJan Beulich <jbeulich@suse.com>2012-03-27 15:20:23 +0200
commita5e1cb8704755905940c7242f62c5e9d85957d65 (patch)
treeef6acb5116ec3970c3cce65c682b62a0a02d310f /xen/arch/x86/time.c
parent7db78449277c45354166ea31bf7c262daea3d8ee (diff)
downloadxen-a5e1cb8704755905940c7242f62c5e9d85957d65.tar.gz
xen-a5e1cb8704755905940c7242f62c5e9d85957d65.tar.bz2
xen-a5e1cb8704755905940c7242f62c5e9d85957d65.zip
x86/hpet: disable before reboot or kexec
Linux up to now is not smart enough to properly clear the HPET when it boots, which is particularly a problem when a kdump attempt from running under Xen is being made. Linux itself added code to work around this to its shutdown paths quite some time ago, so let's do something similar in Xen: Save the configuration register settings during boot, and restore them during shutdown. This should cover the majority of cases where the secondary kernel might not come up because timer interrupts don't work. Signed-off-by: Jan Beulich <jbeulich@suse.com> Acked-by: Keir Fraser <keir@xen.org>
Diffstat (limited to 'xen/arch/x86/time.c')
-rw-r--r--xen/arch/x86/time.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xen/arch/x86/time.c b/xen/arch/x86/time.c
index 91682bd0f1..f944e3d8f3 100644
--- a/xen/arch/x86/time.c
+++ b/xen/arch/x86/time.c
@@ -377,7 +377,7 @@ static int __init init_hpet(struct platform_timesource *pts)
static void resume_hpet(struct platform_timesource *pts)
{
- hpet_resume();
+ hpet_resume(NULL);
}
static struct platform_timesource __initdata plt_hpet =