Unexport ticks_per_sec variable. Create get_ticks_per_sec() function

Signed-off-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
Juan Quintela 2009-09-10 03:04:26 +02:00 committed by Anthony Liguori
parent b03b2e48cb
commit 6ee093c907
44 changed files with 130 additions and 113 deletions

View file

@ -647,7 +647,7 @@ static void ide_sector_write(IDEState *s)
option _only_ to install Windows 2000. You must disable it
for normal use. */
qemu_mod_timer(s->sector_write_timer,
qemu_get_clock(vm_clock) + (ticks_per_sec / 1000));
qemu_get_clock(vm_clock) + (get_ticks_per_sec() / 1000));
} else
#endif
{