diff options
Diffstat (limited to 'arch/x86/kernel/tsc.c')
-rw-r--r-- | arch/x86/kernel/tsc.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/x86/kernel/tsc.c b/arch/x86/kernel/tsc.c index 839070ba8465..6dab90f68515 100644 --- a/arch/x86/kernel/tsc.c +++ b/arch/x86/kernel/tsc.c | |||
@@ -317,6 +317,12 @@ static unsigned long quick_pit_calibrate(void) | |||
317 | t2 = get_cycles(); | 317 | t2 = get_cycles(); |
318 | 318 | ||
319 | /* | 319 | /* |
320 | * Make sure we can rely on the second TSC timestamp: | ||
321 | */ | ||
322 | if (!pit_expect_msb(--expect)) | ||
323 | goto failed; | ||
324 | |||
325 | /* | ||
320 | * Ok, if we get here, then we've seen the | 326 | * Ok, if we get here, then we've seen the |
321 | * MSB of the PIT decrement QUICK_PIT_ITERATIONS | 327 | * MSB of the PIT decrement QUICK_PIT_ITERATIONS |
322 | * times, and each MSB had many hits, so we never | 328 | * times, and each MSB had many hits, so we never |