Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp3990674imm; Mon, 17 Sep 2018 06:34:28 -0700 (PDT) X-Google-Smtp-Source: ANB0VdaQa6CbX0ArBrAr38uWVHbxO3WZpI7LsU6d5gy/OzKKEO2+zrcG1f/blNH72YkRF2rhGH+r X-Received: by 2002:a17:902:3c5:: with SMTP id d63-v6mr24737836pld.145.1537191268398; Mon, 17 Sep 2018 06:34:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537191268; cv=none; d=google.com; s=arc-20160816; b=rlvXfTsm8jaWskSzQ1fFkBtVsClwmdhTykzZ2c5h7zvnVNxBTvW4Z23mqx22Aj28zZ BlXH544nVB6WKctadfvXA2GvJJiXF+otmI165QNN/rXTMRwcEJz0wjgFUCwOX/HhOisH T/FdW2nhUdsTUVTKQQ+8e3Dx3CGmobdPH/+VKB+3xDk57UgwpnqPvHkbtL3B99+vcJeT 7x8o0TVSde5gZNFHGLXWVn09WoZHJ0wajNBJtty4rBXPbz9wk6JpgOMZeURQa+q1Ie+l V143WYN8JLQK6b4TTSE9WmbxpMYcGTKvq2/2xL97JOb1UE6snAeOTwDb0GAfEJcxjdd2 nBBg== 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=qmrEsBsjnA83M/M96rT8pOytnDf7z1OuRplfkPG6f7ztukht1Jvu/1YawGArcq3HPH bOBjlRPNLkddtA0U8BfzXL9vCTwc3gBqKqw+aT7znWfbS0C6YzI/ugyWbEn31ct0HnzI 9k8d7zl4sMgWXisz7BaCShdjBwlKnfHPtjb3qR/SVdfUx3kcgzWYcnHTinDVVY7MzaPo GTodo1rNytmCfIsNiZGPh24oTyjNwPw5EkVWQ+SZEP19zZPjSJSAuxAeGb0e8lqGAv6R 2njBxMgQbMBgT0V3OeFBz7GkvbPAJ/QZU2ZjL+uojrx8c5AEyMpZwtKTn8hSfgXc2E8l F+cg== 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 q1-v6si16585311pfj.149.2018.09.17.06.34.13; Mon, 17 Sep 2018 06:34:28 -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 S1728644AbeIQTBU (ORCPT + 99 others); Mon, 17 Sep 2018 15:01:20 -0400 Received: from smtp17.cstnet.cn ([159.226.251.17]:60038 "EHLO cstnet.cn" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728178AbeIQTBU (ORCPT ); Mon, 17 Sep 2018 15:01:20 -0400 Received: from pw-vbox.higon.com (unknown [182.150.46.145]) by APP-09 (Coremail) with SMTP id swCowACXnpI2rZ9bHNelCg--.2352S2; Mon, 17 Sep 2018 21:33:46 +0800 (CST) From: Pu Wen To: bp@alien8.de, tglx@linutronix.de, mingo@redhat.com, hpa@zytor.com, x86@kernel.org, thomas.lendacky@amd.com, lenb@kernel.org, rjw@rjwysocki.net, rafael@kernel.org Cc: linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, linux-acpi@vger.kernel.org, Pu Wen Subject: [PATCH v7 13/16] ACPI, x86: Add Hygon Dhyana support Date: Mon, 17 Sep 2018 21:33:40 +0800 Message-Id: X-Mailer: git-send-email 2.7.4 In-Reply-To: References: X-CM-TRANSID: swCowAC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IFyT uYvjfUo9NVDUUUU 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