the race is wider than that i think: all it takes an SMI at the last PIO
access, so the window should be 1 usec, against a 15000 usecs period.
That's 1 out of 15,000 boxes coming up with totally incorrect
calibration.
we also might have a very theoretical race of an SMI taking exactly 65
msecs so that the whole PIT wraps around and fools the fastpath - the
chance for that would be around 1:300 - assuming we only have to hit the
right MSB with a ~200 usecs precision). That assumes equal distribution
of SMI costs which they certainly dont have - most of them are much less
than 60 msecs. So i dont think it's an issue in practice - on real hw.
But it's still a possibility unless i'm missing something. We could
protect against that case by reading the IRQ0-pending bit and making
sure it's not pending after we have done the closing TSC readout.
ok, i kept that bit.
Ingo
--