Revision 6ee093c9 hw/omap2.c
b/hw/omap2.c | ||
---|---|---|
412 | 412 |
if (s->trigger == gpt_trigger_none) |
413 | 413 |
omap_gp_timer_out(s, s->scpwm); |
414 | 414 |
/* TODO: make sure this doesn't overflow 32-bits */ |
415 |
s->ticks_per_sec = ticks_per_sec << (s->pre ? s->ptv + 1 : 0);
|
|
415 |
s->ticks_per_sec = get_ticks_per_sec() << (s->pre ? s->ptv + 1 : 0);
|
|
416 | 416 |
omap_gp_timer_update(s); |
417 | 417 |
break; |
418 | 418 |
|
... | ... | |
491 | 491 |
|
492 | 492 |
/* 32-kHz Sync Timer of the OMAP2 */ |
493 | 493 |
static uint32_t omap_synctimer_read(struct omap_synctimer_s *s) { |
494 |
return muldiv64(qemu_get_clock(vm_clock), 0x8000, ticks_per_sec);
|
|
494 |
return muldiv64(qemu_get_clock(vm_clock), 0x8000, get_ticks_per_sec());
|
|
495 | 495 |
} |
496 | 496 |
|
497 | 497 |
static void omap_synctimer_reset(struct omap_synctimer_s *s) |
Also available in: Unified diff