aboutsummaryrefslogtreecommitdiffstats
path: root/xen/arch/x86/hvm/i8254.c
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2007-12-12 15:41:20 +0000
committerKeir Fraser <keir.fraser@citrix.com>2007-12-12 15:41:20 +0000
commit77f9359c57fc54bdf92bb35294de573f78814166 (patch)
treed261947ec9c5f017be698090f426e62f20020327 /xen/arch/x86/hvm/i8254.c
parent2d9284c4a58976f7549729b9e2129151bd8a9bc7 (diff)
downloadxen-77f9359c57fc54bdf92bb35294de573f78814166.tar.gz
xen-77f9359c57fc54bdf92bb35294de573f78814166.tar.bz2
xen-77f9359c57fc54bdf92bb35294de573f78814166.zip
hvm: Reduce vpt.c dependencies on external timer details.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Diffstat (limited to 'xen/arch/x86/hvm/i8254.c')
-rw-r--r--xen/arch/x86/hvm/i8254.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/xen/arch/x86/hvm/i8254.c b/xen/arch/x86/hvm/i8254.c
index 5ca76f1276..8814d4b1e1 100644
--- a/xen/arch/x86/hvm/i8254.c
+++ b/xen/arch/x86/hvm/i8254.c
@@ -501,6 +501,8 @@ void pit_init(struct vcpu *v, unsigned long cpu_khz)
/* Some sub-functions assert that they are called with the lock held. */
spin_lock(&pit->lock);
+ pit->pt0.source = PTSRC_isa;
+
register_portio_handler(v->domain, PIT_BASE, 4, handle_pit_io);
register_portio_handler(v->domain, 0x61, 1, handle_speaker_io);
ticks_per_sec(v) = cpu_khz * (int64_t)1000;