Skip to content

Commit

Permalink
x86: Change warning message in TSC calibration.
Browse files Browse the repository at this point in the history
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: Alok N Kataria <akataria@vmware.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Alok N Kataria authored and Linus Torvalds committed Sep 4, 2008
1 parent ce36394 commit de014d6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions arch/x86/kernel/tsc.c
Original file line number Diff line number Diff line change
Expand Up @@ -267,8 +267,7 @@ unsigned long native_calibrate_tsc(void)
*/
if (tsc_pit_min == ULONG_MAX) {
/* PIT gave no useful value */
printk(KERN_WARNING "TSC: PIT calibration failed due to "
"SMI disturbance.\n");
printk(KERN_WARNING "TSC: Unable to calibrate against PIT\n");

/* We don't have an alternative source, disable TSC */
if (!hpet && !pm1 && !pm2) {
Expand Down

0 comments on commit de014d6

Please sign in to comment.