Files
linux/arch/x86/include/asm
Peter Zijlstra 239c948e32 x86/tsc: Allow TSC calibration without PIT
[ Upstream commit 30c7e5b123 ]

Zhang Rui reported that a Surface Pro 4 will fail to boot with
lapic=notscdeadline. Part of the problem is that that machine doesn't have
a PIT.

If, for some reason, the TSC init has to fall back to TSC calibration, it
relies on the PIT to be present.

Allow TSC calibration to reliably fall back to HPET.

The below results in an accurate TSC measurement when forced on a IVB:

  tsc: Unable to calibrate against PIT
  tsc: No reference (HPET/PMTIMER) available
  tsc: Unable to calibrate against PIT
  tsc: using HPET reference calibration
  tsc: Detected 2792.451 MHz processor

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: len.brown@intel.com
Cc: rui.zhang@intel.com
Link: https://lkml.kernel.org/r/20171222092243.333145937@infradead.org
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-04-26 11:02:03 +02:00
..
2018-02-22 15:42:23 +01:00
2018-01-02 20:31:02 +01:00
2018-02-22 15:42:23 +01:00
2017-12-29 17:53:44 +01:00
2017-12-29 17:53:43 +01:00
2018-02-07 11:12:22 -08:00
2017-07-26 13:18:20 +02:00
2017-07-26 13:18:20 +02:00
2016-01-30 11:22:17 +01:00
2018-02-22 15:42:24 +01:00
2018-02-22 15:42:24 +01:00
2016-06-16 00:04:31 +02:00
2018-03-28 18:24:46 +02:00
2018-02-22 15:42:23 +01:00