summaryrefslogtreecommitdiff
path: root/crypto/xor.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2009-03-17 07:58:26 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2009-03-17 07:58:26 -0700
commita6a80e1d8cf82b46a69f88e659da02749231eb36 (patch)
tree307db5dba0a4217e9e3298d74b16593b3674a02e /crypto/xor.c
parent19695ec03d492f1eeb760727d3bd10c7d2f31c1d (diff)
Fix potential fast PIT TSC calibration startup glitch
During bootup, when we reprogram the PIT (programmable interval timer) to start counting down from 0xffff in order to use it for the fast TSC calibration, we should also make sure to delay a bit afterwards to allow the PIT hardware to actually start counting with the new value. That will happens at the next CLK pulse (1.193182 MHz), so the easiest way to do that is to just wait at least one microsecond after programming the new PIT counter value. We do that by just reading the counter value back once - which will take about 2us on PC hardware. Reported-and-tested-by: john stultz <johnstul@us.ibm.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'crypto/xor.c')
0 files changed, 0 insertions, 0 deletions