Received: by 10.223.176.46 with SMTP id f43csp1091316wra; Wed, 24 Jan 2018 10:27:37 -0800 (PST) X-Google-Smtp-Source: AH8x226S4FxLypy/zUaxq5Gbrw8lk0bMkq06kf6RgLQ4n6vatHMd6nwmEw+A3WkHSWYOTpbnvZEp X-Received: by 10.101.98.133 with SMTP id f5mr4022037pgv.357.1516818457523; Wed, 24 Jan 2018 10:27:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516818457; cv=none; d=google.com; s=arc-20160816; b=vSXIpquWtDzHzgkJfnqu7+8gwgElpiS1wkfl+wXy/+v0bIsg8+cmxiSxgw2Ll/IQbD w5WdLmOSwt09dmwSUc+jNzMU1Fk8nBy0LXTDr+EPcI+YyOgsVnzpbAa4QX/EhC4Jvqhq TnMuUbvb882AN6oM7H7GZZZXjR4cuLqWRLOB0NFlOJ9+1a3r6YIj077ZpazIg/3PD7qJ 9OYRnPu8f8iDmzu5+fQiE42/FL/quE0nYCmtIeOcQpBFZKtqYhdOjLAnBY1+VLVQzksh SCS17au99yAlbDPOYUHh5HHn4JBu6OOmmcZKw+nDNYlWo9vcydol8wM1u6DHvUxuJpXg s55g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date:arc-authentication-results; bh=N9DwupG1tQ1DnQ7u4UB0g35I03dT5R6cMIr1xj3ZTvk=; b=dOIGud402emu9nC2mCSIG6EUWSOy5CTTrAdjCdL0mjilmhRcp5p5h/7wYR/a+zKiys TDdCXv5CEVUE/I6f7X5u2anLOu9j05CZLhxsy/e3XwQwWvemtdr9ELhpIKpXdbTh2Oy9 YL+FNLV5RwZVraHKlbhYssT33j6KWQ4cAtObpp5jk/h+grockvTquXu1+5PK2WTDqB+r kEiIIpGhlCY7yLCeZKjeNEyZ7YgQmO6iWoVRrWBLNCsQsJVocfjFPxnk2RbGNWtLzkHj M5mzNLc4gGVfmVGXV8y+y0QlXsdbXajddP31AgIFvrqL8hLqJfHkXdkqZ7GcT8ACBYFV n7gA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j124si410738pgc.692.2018.01.24.10.27.22; Wed, 24 Jan 2018 10:27:37 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965009AbeAXS07 (ORCPT + 99 others); Wed, 24 Jan 2018 13:26:59 -0500 Received: from www.llwyncelyn.cymru ([82.70.14.225]:36428 "EHLO fuzix.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S964850AbeAXS06 (ORCPT ); Wed, 24 Jan 2018 13:26:58 -0500 Received: from alans-desktop (82-70-14-226.dsl.in-addr.zen.co.uk [82.70.14.226]) by fuzix.org (8.15.2/8.15.2) with ESMTP id w0OIQhvF013621; Wed, 24 Jan 2018 18:26:44 GMT Date: Wed, 24 Jan 2018 18:26:42 +0000 From: Alan Cox To: TimGuo Cc: , , , , , , , , , , Subject: Re: [PATCH] x86/centaur: Mark TSC invariant Message-ID: <20180124182642.0669c9bd@alans-desktop> In-Reply-To: <1515980145-3693-1-git-send-email-timguo@zhaoxin.com> References: <1515980145-3693-1-git-send-email-timguo@zhaoxin.com> Organization: Intel Corporation X-Mailer: Claws Mail 3.15.1-dirty (GTK+ 2.24.31; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 15 Jan 2018 09:35:45 +0800 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. And this is true for all processors back to IDT WinChip ? Alan