Hello,

I am playing with U-Boot on ARM under qemu.
U-boot uses mptimer, and under qemu one second takes about 1 in real world.
At the moment it seem that in u-boot is ok, so I have question about below 
function.
Why prescaler value is multiply by 10?

static inline uint64_t a9_gtimer_get_conv(A9GTimerState *s)
{
    uint64_t prescale = extract32(s->control, R_CONTROL_PRESCALER_SHIFT,
                                  R_CONTROL_PRESCALER_LEN);

    return (prescale + 1) * 10;
}

Regards,
Marcin

Reply via email to