diff options
Diffstat (limited to 'arch/i386/kernel/tsc.c')
-rw-r--r-- | arch/i386/kernel/tsc.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/i386/kernel/tsc.c b/arch/i386/kernel/tsc.c index 6cb8f5336732..755209dc93e1 100644 --- a/arch/i386/kernel/tsc.c +++ b/arch/i386/kernel/tsc.c | |||
@@ -233,7 +233,7 @@ time_cpufreq_notifier(struct notifier_block *nb, unsigned long val, void *data) | |||
233 | * TSC based sched_clock turns | 233 | * TSC based sched_clock turns |
234 | * to junk w/ cpufreq | 234 | * to junk w/ cpufreq |
235 | */ | 235 | */ |
236 | mark_tsc_unstable(); | 236 | mark_tsc_unstable("cpufreq changes"); |
237 | } | 237 | } |
238 | } | 238 | } |
239 | } | 239 | } |
@@ -281,11 +281,12 @@ static struct clocksource clocksource_tsc = { | |||
281 | CLOCK_SOURCE_MUST_VERIFY, | 281 | CLOCK_SOURCE_MUST_VERIFY, |
282 | }; | 282 | }; |
283 | 283 | ||
284 | void mark_tsc_unstable(void) | 284 | void mark_tsc_unstable(char *reason) |
285 | { | 285 | { |
286 | if (!tsc_unstable) { | 286 | if (!tsc_unstable) { |
287 | tsc_unstable = 1; | 287 | tsc_unstable = 1; |
288 | tsc_enabled = 0; | 288 | tsc_enabled = 0; |
289 | printk("Marking TSC unstable due to: %s.\n", reason); | ||
289 | /* Can be called before registration */ | 290 | /* Can be called before registration */ |
290 | if (clocksource_tsc.mult) | 291 | if (clocksource_tsc.mult) |
291 | clocksource_change_rating(&clocksource_tsc, 0); | 292 | clocksource_change_rating(&clocksource_tsc, 0); |