diff options
Diffstat (limited to 'arch/x86/kernel/tsc_32.c')
-rw-r--r-- | arch/x86/kernel/tsc_32.c | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/arch/x86/kernel/tsc_32.c b/arch/x86/kernel/tsc_32.c index c2241e04ea5f..68657d8526fb 100644 --- a/arch/x86/kernel/tsc_32.c +++ b/arch/x86/kernel/tsc_32.c | |||
@@ -392,13 +392,15 @@ void __init tsc_init(void) | |||
392 | int cpu; | 392 | int cpu; |
393 | 393 | ||
394 | if (!cpu_has_tsc) | 394 | if (!cpu_has_tsc) |
395 | goto out_no_tsc; | 395 | return; |
396 | 396 | ||
397 | cpu_khz = calculate_cpu_khz(); | 397 | cpu_khz = calculate_cpu_khz(); |
398 | tsc_khz = cpu_khz; | 398 | tsc_khz = cpu_khz; |
399 | 399 | ||
400 | if (!cpu_khz) | 400 | if (!cpu_khz) { |
401 | goto out_no_tsc; | 401 | mark_tsc_unstable("could not calculate TSC khz"); |
402 | return; | ||
403 | } | ||
402 | 404 | ||
403 | printk("Detected %lu.%03lu MHz processor.\n", | 405 | printk("Detected %lu.%03lu MHz processor.\n", |
404 | (unsigned long)cpu_khz / 1000, | 406 | (unsigned long)cpu_khz / 1000, |
@@ -431,9 +433,4 @@ void __init tsc_init(void) | |||
431 | tsc_enabled = 1; | 433 | tsc_enabled = 1; |
432 | 434 | ||
433 | clocksource_register(&clocksource_tsc); | 435 | clocksource_register(&clocksource_tsc); |
434 | |||
435 | return; | ||
436 | |||
437 | out_no_tsc: | ||
438 | setup_clear_cpu_cap(X86_FEATURE_TSC); | ||
439 | } | 436 | } |