]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
x86/tsc: Set TSC_KNOWN_FREQ and TSC_RELIABLE flags on Intel Atom SoCs
authorBin Gao <bin.gao@linux.intel.com>
Tue, 15 Nov 2016 20:27:24 +0000 (12:27 -0800)
committerThomas Gleixner <tglx@linutronix.de>
Fri, 18 Nov 2016 09:58:31 +0000 (10:58 +0100)
commitf3a02ecebed7df7d5d68898628dea7a3bfcf03e3
treeb8631d7c3aef3307b593e12b5e3255df138eac9d
parent4635fdc696a8e89eead3ea1712ae6ada38538d40
x86/tsc: Set TSC_KNOWN_FREQ and TSC_RELIABLE flags on Intel Atom SoCs

TSC on Intel Atom SoCs capable of determining TSC frequency by MSR is
reliable and the frequency is known (provided by HW).

On these platforms PIT/HPET is generally not available so calibration won't
work at all and there is no other clocksource to act as a watchdog for the
TSC, so we have no other choice than to trust it.

Set both X86_FEATURE_TSC_KNOWN_FREQ and X86_FEATURE_TSC_RELIABLE flags to
make sure the calibration is skipped and no watchdog is required.

Signed-off-by: Bin Gao <bin.gao@intel.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/1479241644-234277-5-git-send-email-bin.gao@linux.intel.com
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
arch/x86/kernel/tsc_msr.c
arch/x86/platform/intel-mid/mfld.c
arch/x86/platform/intel-mid/mrfld.c