mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 16:53:55 -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
|
@ -726,7 +726,7 @@ static inline int64_t pcnet_get_next_poll_time(PCNetState *s, int64_t current_ti
|
|||
{
|
||||
int64_t next_time = current_time +
|
||||
muldiv64(65536 - (CSR_SPND(s) ? 0 : CSR_POLL(s)),
|
||||
ticks_per_sec, 33000000L);
|
||||
get_ticks_per_sec(), 33000000L);
|
||||
if (next_time <= current_time)
|
||||
next_time = current_time + 1;
|
||||
return next_time;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue