Sorry for late response.
Yasunori Goto wrote:
Could you, just for testing, run the calibration five thousand times orI've no sense of feel for how long each calibration run would take.Hmm. The loop times is trade off against reliable value....
Would doing it 5 times show up as a significant increase in the boot
time for those that care about boot time being as quick as possible?
Though SMI is rare interruption, I don't know how frequent
hypervisor's switch is.
so instead of five times, and count how often you get insane values?
(And how much delay does such an SMI add?)
I tried 50000 times. But insane value was nothing.
I think SMI is very rare.
Each calibration of this has 1 milli second.This shouldn't matter when booting. Anyway, I think it's possible to
Do you think 5 msec is too long?
increase TICK_CALIBRATE without losing too much accuracy.
Hmm. If the person who is trying to reduce boot time for fastboot dislikes this impact,
then I'll try Vojtech-san's way.
Thanks.