Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp1977664ybi; Sun, 16 Jun 2019 18:38:41 -0700 (PDT) X-Google-Smtp-Source: APXvYqze+/SltQQ20sp2xTba9y/v7qhxQLIU7r6NxVyqU3JXJ/DBObMGUNfLOiiRNFB3tlTvsjOF X-Received: by 2002:a17:902:4a:: with SMTP id 68mr105906615pla.235.1560735521593; Sun, 16 Jun 2019 18:38:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560735521; cv=none; d=google.com; s=arc-20160816; b=ec1EfXRR0GV3cUEUT+6UPl6K/N8dbreqtReFgw2KDUQcCBNOJ57+kh5LOuNhygs4+L hA4GOc0OaJ97IqMtG42gWgSn32/qqsGpauawQJL7cpUsZilE16GSH7PySu918EGyq8i7 qUQzOsmru+VLnSVrO/8WVlpB6IFtVKyQ8farwK214K4IA0dSNay8RZAeuoss2Q6DyruM COBmyERUuF+CRvPSUpcfgkwRyjCf7bx2dbsR/9wH/iDQqZ48M6dGHl/royf+R8ddO+Zz C8qbyqIsWXPNQ1B8RpGMfJpr9E+cXj+QbV3Du27N7irM4n9/UuvGiex8Hry2Quoq5Llo jdCw== 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=Knm7Pqd58P6ztE33dci5YTuKLr7Q6SGw+/QXm2nommo=; b=szxMmRkPYn5VMusa4j/iT2EKFFNyfLV9CKjtUVllp78bNScHrnwJF9jMDLB66KDnqu FkOOwvGVgwPACrlcLLaJlOiEN7KFvUSfXsBOXroSzS8D8rI4cG44uaopld5JmTjZ48YG oGqQfNL8gB+TpTujzleqbeY3l3HA7Z5Uyt8HRC+gjY365mZVUd0LZli9sexScdLLXIHK GldFV+D1slB54RfqrGwycED8eGhPnsCKdnPXRFmfVyw9fq4g9aJQXJYm8OSwqZR4xdj4 uFZN3uhAE/Y12uYhzS5BRLEh3/OWYfhorcJ/lX8cVqnc6VclVVtN55gN7QGY5F5Wzu6b KdRQ== 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 g32si8957996pje.38.2019.06.16.18.38.24; Sun, 16 Jun 2019 18:38:41 -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 S1727510AbfFQBiV convert rfc822-to-8bit (ORCPT + 99 others); Sun, 16 Jun 2019 21:38:21 -0400 Received: from ZXSHCAS1.zhaoxin.com ([203.148.12.81]:36420 "EHLO ZXSHCAS1.zhaoxin.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1727389AbfFQBiV (ORCPT ); Sun, 16 Jun 2019 21:38:21 -0400 Received: from zxbjmbx3.zhaoxin.com (10.29.252.165) by ZXSHCAS1.zhaoxin.com (10.28.252.161) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1261.35; Mon, 17 Jun 2019 09:38:18 +0800 Received: from zxbjmbx1.zhaoxin.com (10.29.252.163) by zxbjmbx3.zhaoxin.com (10.29.252.165) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1261.35; Mon, 17 Jun 2019 09:38:17 +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; Mon, 17 Jun 2019 09:38:17 +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: AdUkrOpoMH2rNjrMT+S2lZq3wpqRFw== Date: Mon, 17 Jun 2019 01:38:17 +0000 Message-ID: <97b2d9d81a8446d0b204ddd6e5e930b7@zhaoxin.com> 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 a47676a..c06306e 100644 --- a/drivers/acpi/acpi_pad.c +++ b/drivers/acpi/acpi_pad.c @@ -73,6 +73,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 98d4ec5..fa95ce9 100644 --- a/drivers/acpi/processor_idle.c +++ b/drivers/acpi/processor_idle.c @@ -209,6 +209,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