Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1370665imm; Sun, 23 Sep 2018 02:37:45 -0700 (PDT) X-Google-Smtp-Source: ACcGV63m28/j6xqIwENqUaf48zqQKKYpYw4pRKBaYb7+bhuebr4xQh38hehr5U4wchy4qB1xldRr X-Received: by 2002:a63:4716:: with SMTP id u22-v6mr3772399pga.95.1537695465410; Sun, 23 Sep 2018 02:37:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537695465; cv=none; d=google.com; s=arc-20160816; b=bTYDJgavm3yb/xQYl7LuS73Q6fgtqzA1UGY5LgGpQXXCdhxml/bWZdI06eXaJt38aI kHHTeyTt9a8EVfOZeJ7BtHC9bQC9Vzry/jw9XvPqUl1Zqir6FCR04lhnJvH6K+RZ07wG YLU4OfRALY/VbwStehaaoXDJQlORz1SZ4Hxa+NcndYyLvDqfrcFp6e1Z94hxBCB2shD+ gKn3elRXis1NwqnFq0ljfJQ7MOQxId1nw25jqxwbgA9FuTggfc0ip7cwOAfPbgYw3Az9 zxBFHqyRa2kRTUicm7AVh++nkmPyNciUO0stCbPAPXblauTLidDXv018s+ZBSCQHyZ47 +bJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=3Q/SCd2Tl+l94bs33HRnfvsv94hJ5kFGMG7+qzQEzm4=; b=k69FoYDpL1qhJE9rZAMliRgKSYeW7p0wDQcWAxs0+jRo8A99HrCF7Eb6oL52brOraI bVmHM07WGFAvmkRB9sITes/OnpdG8W+7YCaO6vgp8mxfXc8MvGRk1gy03owyqk5+PYqS rb+y/2k2BVEgAdsTW0L4VTW7PKe2i4r5x1O9ewYRdAX4Cg1cQJhg1x3oBjP5fDiIDXkQ xtL6nHh7PNO0QJfaeBLPg4KNCNMteD6+N7nKXfHyS3cD/zJ/Wq9e0QpKXvkWLxYd6Aqo 9Typ1HmiGghlsBC2rTVcyRbjRtBnnJLQ+XiTv8nPmD0aNPnCL6d2VZCC9ywWLV6aY3Zq ETTw== 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 e22-v6si9381932pgb.626.2018.09.23.02.37.30; Sun, 23 Sep 2018 02:37:45 -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 S1726648AbeIWPeQ (ORCPT + 99 others); Sun, 23 Sep 2018 11:34:16 -0400 Received: from smtp21.cstnet.cn ([159.226.251.21]:50085 "EHLO cstnet.cn" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726071AbeIWPeQ (ORCPT ); Sun, 23 Sep 2018 11:34:16 -0400 Received: from pw-vbox.higon.com (unknown [182.150.46.145]) by APP-01 (Coremail) with SMTP id qwCowAA3mUbDXqdbBmWzDA--.8S2; Sun, 23 Sep 2018 17:37:11 +0800 (CST) From: Pu Wen To: rjw@rjwysocki.net, bp@alien8.de, tglx@linutronix.de, mingo@redhat.com, hpa@zytor.com, x86@kernel.org, thomas.lendacky@amd.com, lenb@kernel.org, rafael@kernel.org, rafael.j.wysocki@intel.com Cc: linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, linux-acpi@vger.kernel.org, Pu Wen Subject: [PATCH v8 13/16] ACPI, x86: Add Hygon Dhyana support Date: Sun, 23 Sep 2018 17:37:05 +0800 Message-Id: X-Mailer: git-send-email 2.7.4 In-Reply-To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vcSsGvfC2KfnxnUUI43ZEXa 7VUbjQ6JUUUUU== X-Originating-IP: [182.150.46.145] X-CM-SenderInfo: psxzv046klw03qof0z/ Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The Hygon Dhyana CPU has NONSTOP TSC feature, so enable the ACPI driver support to it. Signed-off-by: Pu Wen Acked-by: Rafael J. Wysocki --- 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 552c1f7..a47676a 100644 --- a/drivers/acpi/acpi_pad.c +++ b/drivers/acpi/acpi_pad.c @@ -70,6 +70,7 @@ static void power_saving_mwait_init(void) #if defined(CONFIG_X86) switch (boot_cpu_data.x86_vendor) { + case X86_VENDOR_HYGON: case X86_VENDOR_AMD: case X86_VENDOR_INTEL: /* diff --git a/drivers/acpi/processor_idle.c b/drivers/acpi/processor_idle.c index abb559c..b2131c4 100644 --- a/drivers/acpi/processor_idle.c +++ b/drivers/acpi/processor_idle.c @@ -205,6 +205,7 @@ static void lapic_timer_state_broadcast(struct acpi_processor *pr, static void tsc_check_state(int state) { switch (boot_cpu_data.x86_vendor) { + case X86_VENDOR_HYGON: case X86_VENDOR_AMD: case X86_VENDOR_INTEL: case X86_VENDOR_CENTAUR: -- 2.7.4