Revision b0f74c87 hw/rc4030.c
b/hw/rc4030.c | ||
---|---|---|
70 | 70 |
static void set_next_tick(rc4030State *s) |
71 | 71 |
{ |
72 | 72 |
qemu_irq_lower(s->timer_irq); |
73 |
uint32_t hz; |
|
73 |
uint32_t tm_hz;
|
|
74 | 74 |
|
75 |
hz = 1000 / (s->itr + 1); |
|
75 |
tm_hz = 1000 / (s->itr + 1);
|
|
76 | 76 |
|
77 |
qemu_mod_timer(s->periodic_timer, qemu_get_clock(vm_clock) + ticks_per_sec / hz); |
|
77 |
qemu_mod_timer(s->periodic_timer, qemu_get_clock(vm_clock) + ticks_per_sec / tm_hz);
|
|
78 | 78 |
} |
79 | 79 |
|
80 | 80 |
/* called for accesses to rc4030 */ |
Also available in: Unified diff