]> git.baikalelectronics.ru Git - kernel.git/commit
x86/centaur: Mark TSC invariant
authordavidwang <davidwang@zhaoxin.com>
Mon, 22 Jan 2018 10:14:17 +0000 (18:14 +0800)
committerThomas Gleixner <tglx@linutronix.de>
Wed, 24 Jan 2018 12:38:10 +0000 (13:38 +0100)
commitda63c62110cf638acda79f185aaad01be560b5af
tree7a8ad4a75e7aa384ae1011ed6abd7d6bd8d502b0
parent81be1ac2e0a60a5e028e4885a866b881086750e5
x86/centaur: Mark TSC invariant

Centaur CPU has a constant frequency TSC and that TSC does not stop in
C-States. But because the corresponding TSC feature flags are not set for
that CPU, the TSC is treated as not constant frequency and assumed to stop
in C-States, which makes it an unreliable and unusable clock source.

Setting those flags tells the kernel that the TSC is usable, so it will
select it over HPET.  The effect of this is that reading time stamps (from
kernel or user space) will be faster and more efficent.

Signed-off-by: davidwang <davidwang@zhaoxin.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: qiyuanwang@zhaoxin.com
Cc: linux-pm@vger.kernel.org
Cc: brucechang@via-alliance.com
Cc: cooperyan@zhaoxin.com
Cc: benjaminpan@viatech.com
Link: https://lkml.kernel.org/r/1516616057-5158-1-git-send-email-davidwang@zhaoxin.com
arch/x86/kernel/cpu/centaur.c
drivers/acpi/processor_idle.c