Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp3498243ybi; Tue, 18 Jun 2019 01:38:04 -0700 (PDT) X-Google-Smtp-Source: APXvYqykVxKBQn3xr85rcVhD8FHfmenq05hFIuYA86+AlhhZ6QafjHHe5rn/mJcrrEfXMXRqe/3X X-Received: by 2002:a63:4105:: with SMTP id o5mr1652612pga.308.1560847083934; Tue, 18 Jun 2019 01:38:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560847083; cv=none; d=google.com; s=arc-20160816; b=m5KfDHeTer5cSOsH1xsXGppkUZkxl90iCqv/GSdpJInYZcC/Z5xaHMSIHEDH9c6IvX RkaWl0YuWwyAZ2rViMTSKE7V4umNqMS75jKjztCottHgb9NPNr+8GxUbKU1OQW39O7wH qSh2WAgrqce1tWu4CFoAM/ZZvqQ7GSNGdeZ1gpP7Nhe2Oxz1Ldrf/zy3/gu6tLwH29MU KFJYMUPwRRYXZGoDODyU1cbiYJfg2bY1mRg7wKKWaR7dZmymKfS90H2lvIMRxH3KuMI0 fi7USGV2SC21ffNGA5SnkR3f63giiKznE4qBJvRsewjuVEjzWzf2tUKhOtER/Ih8htoC TILA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:message-id:date:thread-index :thread-topic:subject:cc:to:from; bh=nvAkyoSk0GkkX6wPQANzhHSvgJsfkhiezICh88ImWzU=; b=H1vwVQzNEghe5ekCe6Na9s8Gs4YRTzZMXHc8WOLvPiPTc7JQQTHvDSG51INlgzwAk/ iI8t/XKO27ZmvOH5nPVEVizy0zqAH20+iqekUsw1NmkICJbkf4wMf6aMAi99OFBcCymm POJtzlNcUqlQOPzH4WhGiglq5gnmmJ8AZMaVbfyrXkJ0mm7emIq7dT11VgHHeItESzLf BKKr/bwoaauDCYZr72+CywzYuKjXPIMBWvrUsAGU8VJvdxYQ1IesHP8x5qYwFuWy5TPn BbAIhwdrbs1o50TFAO+Y49WnlpAloqHg9JO85RvJrJu0sA8FeSTl2WXfh25cF2SS0/07 eN+w== 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 a64si4639996pla.432.2019.06.18.01.37.48; Tue, 18 Jun 2019 01:38:03 -0700 (PDT) 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 S1729229AbfFRIhV convert rfc822-to-8bit (ORCPT + 99 others); Tue, 18 Jun 2019 04:37:21 -0400 Received: from ZXSHCAS2.zhaoxin.com ([203.148.12.82]:28486 "EHLO ZXSHCAS2.zhaoxin.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1729205AbfFRIhS (ORCPT ); Tue, 18 Jun 2019 04:37:18 -0400 Received: from zxbjmbx2.zhaoxin.com (10.29.252.164) by ZXSHCAS2.zhaoxin.com (10.28.252.162) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1261.35; Tue, 18 Jun 2019 16:37:15 +0800 Received: from zxbjmbx1.zhaoxin.com (10.29.252.163) by zxbjmbx2.zhaoxin.com (10.29.252.164) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1261.35; Tue, 18 Jun 2019 16:37:15 +0800 Received: from zxbjmbx1.zhaoxin.com ([fe80::b41a:737:a784:b70d]) by zxbjmbx1.zhaoxin.com ([fe80::b41a:737:a784:b70d%16]) with mapi id 15.01.1261.035; Tue, 18 Jun 2019 16:37:15 +0800 From: Tony W Wang-oc To: "tglx@linutronix.de" , "mingo@redhat.com" , "hpa@zytor.com" , "x86@kernel.org" , "gregkh@linuxfoundation.org" , "linux-kernel@vger.kernel.org" , "rjw@rjwysocki.net" , "lenb@kernel.org" CC: David Wang , "Cooper Yan(BJ-RD)" , "Qiyuan Wang(BJ-RD)" , "Herry Yang(BJ-RD)" Subject: [PATCH v2 2/3] ACPI, x86: add Zhaoxin processors support for NONSTOP TSC Thread-Topic: [PATCH v2 2/3] ACPI, x86: add Zhaoxin processors support for NONSTOP TSC Thread-Index: AdUlrWb2UUdnhrSrTk6GyjUnqmkUeA== Date: Tue, 18 Jun 2019 08:37:14 +0000 Message-ID: Accept-Language: en-US, zh-CN Content-Language: zh-CN X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.32.64.75] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Zhaoxin CPUs have NONSTOP TSC feature, so enable the ACPI driver support for it. Signed-off-by: Tony W Wang-oc --- drivers/acpi/acpi_pad.c | 1 + drivers/acpi/processor_idle.c | 1 + 2 files changed, 2 insertions(+) diff --git a/drivers/acpi/acpi_pad.c b/drivers/acpi/acpi_pad.c index 6b3f121..e7dc013 100644 --- a/drivers/acpi/acpi_pad.c +++ b/drivers/acpi/acpi_pad.c @@ -64,6 +64,7 @@ static void power_saving_mwait_init(void) case X86_VENDOR_HYGON: case X86_VENDOR_AMD: case X86_VENDOR_INTEL: + case X86_VENDOR_ZHAOXIN: /* * AMD Fam10h TSC will tick in all * C/P/S0/S1 states when this bit is set. diff --git a/drivers/acpi/processor_idle.c b/drivers/acpi/processor_idle.c index e387a25..ed56c6d 100644 --- a/drivers/acpi/processor_idle.c +++ b/drivers/acpi/processor_idle.c @@ -196,6 +196,7 @@ static void tsc_check_state(int state) case X86_VENDOR_AMD: case X86_VENDOR_INTEL: case X86_VENDOR_CENTAUR: + case X86_VENDOR_ZHAOXIN: /* * AMD Fam10h TSC will tick in all * C/P/S0/S1 states when this bit is set. -- 2.7.4