Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933048AbeAOJtO (ORCPT + 1 other); Mon, 15 Jan 2018 04:49:14 -0500 Received: from Galois.linutronix.de ([146.0.238.70]:39399 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932521AbeAOJtM (ORCPT ); Mon, 15 Jan 2018 04:49:12 -0500 Date: Mon, 15 Jan 2018 10:49:04 +0100 (CET) From: Thomas Gleixner To: TimGuo cc: mingo@redhat.com, hpa@zytor.com, mingo@kernel.org, x86@kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, brucechang@via-alliance.com, cooperyan@zhaoxin.com, qiyuanwang@zhaoxin.com, benjaminpan@viatech.com Subject: Re: [PATCH] x86/centaur: Mark TSC invariant In-Reply-To: <1515980145-3693-1-git-send-email-timguo@zhaoxin.com> Message-ID: References: <1515980145-3693-1-git-send-email-timguo@zhaoxin.com> User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: On Mon, 15 Jan 2018, TimGuo wrote: > Centaur CPU has a constant frequency TSC and that TSC does not stop in C-States. > But because the flags are not set for that CPU, the TSC is treated as non 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 userspace) will be faster and more efficient. > > Signed-off-by: TimGuo > --- > arch/x86/kernel/cpu/centaur.c | 4 ++++ > drivers/acpi/processor_idle.c | 1 + > 2 files changed, 5 insertions(+) > > diff --git a/arch/x86/kernel/cpu/centaur.c b/arch/x86/kernel/cpu/centaur.c > index 68bc6d9..c578cd2 100644 > --- a/arch/x86/kernel/cpu/centaur.c > +++ b/arch/x86/kernel/cpu/centaur.c > @@ -106,6 +106,10 @@ static void early_init_centaur(struct cpuinfo_x86 *c) > #ifdef CONFIG_X86_64 > set_cpu_cap(c, X86_FEATURE_SYSENTER32); This is still white space damaged, i.e. TAB is converted to spaces. Please talk to your IT departement. Thanks, tglx