mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 02:03:56 -06:00
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:
parent
b03b2e48cb
commit
6ee093c907
44 changed files with 130 additions and 113 deletions
|
@ -290,7 +290,7 @@ static void set_next_tick(dp8393xState *s)
|
|||
|
||||
ticks = s->regs[SONIC_WT1] << 16 | s->regs[SONIC_WT0];
|
||||
s->wt_last_update = qemu_get_clock(vm_clock);
|
||||
delay = ticks_per_sec * ticks / 5000000;
|
||||
delay = get_ticks_per_sec() * ticks / 5000000;
|
||||
qemu_mod_timer(s->watchdog, s->wt_last_update + delay);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue