Commit de014d61 authored by Alok N Kataria's avatar Alok N Kataria Committed by Linus Torvalds

x86: Change warning message in TSC calibration.

When calibration against PIT fails, the warning that we print is misleading.
In a virtualized environment the VM may get descheduled while calibration
or, the check in PIT calibration may fail due to other virtualization
overheads.

The warning message explicitly assumes that calibration failed due to SMI's
which may not be the case. Change that to something proper.
Signed-off-by: default avatarAlok N Kataria <akataria@vmware.com>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent ce363942
...@@ -267,8 +267,7 @@ unsigned long native_calibrate_tsc(void) ...@@ -267,8 +267,7 @@ unsigned long native_calibrate_tsc(void)
*/ */
if (tsc_pit_min == ULONG_MAX) { if (tsc_pit_min == ULONG_MAX) {
/* PIT gave no useful value */ /* PIT gave no useful value */
printk(KERN_WARNING "TSC: PIT calibration failed due to " printk(KERN_WARNING "TSC: Unable to calibrate against PIT\n");
"SMI disturbance.\n");
/* We don't have an alternative source, disable TSC */ /* We don't have an alternative source, disable TSC */
if (!hpet && !pm1 && !pm2) { if (!hpet && !pm1 && !pm2) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment