From 6ee093c90761eabfc6255624000d3d8248802209 Mon Sep 17 00:00:00 2001 From: Juan Quintela Date: Thu, 10 Sep 2009 03:04:26 +0200 Subject: Unexport ticks_per_sec variable. Create get_ticks_per_sec() function Signed-off-by: Juan Quintela Signed-off-by: Anthony Liguori --- hw/tsc2005.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hw/tsc2005.c') diff --git a/hw/tsc2005.c b/hw/tsc2005.c index efc63c0..b75cc86 100644 --- a/hw/tsc2005.c +++ b/hw/tsc2005.c @@ -290,7 +290,7 @@ static void tsc2005_pin_update(TSC2005State *s) s->precision = s->nextprecision; s->function = s->nextfunction; s->pdst = !s->pnd0; /* Synchronised on internal clock */ - expires = qemu_get_clock(vm_clock) + (ticks_per_sec >> 7); + expires = qemu_get_clock(vm_clock) + (get_ticks_per_sec() >> 7); qemu_mod_timer(s->timer, expires); } -- cgit v1.1