Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2778975imm; Mon, 10 Sep 2018 06:25:44 -0700 (PDT) X-Google-Smtp-Source: ANB0VdazWocX6XNXW29Cj5IUefNFM+7ffvLJVNQg0uauQS5KF2TnYgIl4dO2SHAHg1MHRFPfT5aw X-Received: by 2002:a63:b258:: with SMTP id t24-v6mr23327008pgo.317.1536585944333; Mon, 10 Sep 2018 06:25:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536585944; cv=none; d=google.com; s=arc-20160816; b=F7HMoaPz2NllGtS/0r7Nj8GTl0G/ZzIloKZH/6+NTcTS2Nfb3P8q4k2DUeGnHbVNYE vwOyYAgJD4/bF9ejoNpwuKPiEWGJ3WN8zHcW4lypGKyJ+8tYiGVF9qD7SI6JT7Wnvf9m VIxKw5ePYvHA6DbhzPM6u9ySlqNYwMdXwLHZZcmeT9dl/O5yfpHuM3g9sotaHbZ1KJK2 2Io0UzDCRwSIH73YMHk1hxR95uvE2socBkFBzvQR83BMeRtELNLHgXlOL7P8l0r257WJ qCkAoDcwToZ+I/hfhDaNCbuftcgl3fERYmrMdXQutuPB8EEKu8h/Lf5dqLSfbzGfKgSw DJPA== 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=dQAWq8HisWZsNqjUQUl+x50iKpZ6f9btJESBquZxtIw=; b=sEWe9pxw06rizVXoerc8tXNoXYb0feLH/zc/rByz4oL8mNdS1QP/oRCW3mMPqI6uJa 1d7oN/f39CHnuaMgwcZNDRWcRgp2kIFllzdvahhtu5JQvIDFwcAys9RASMl30BPz//8C QKBHxJjuaeU26r314lQlJX+b5TF6ws+W/WIvYDf33LbgX/X9AFX1totfrhyZ39+ZW3ij UO6ribhscdvendTZ+CjFUMdqPNKwtqCPWg7M+sHdym3/TOdfkw1zTRRZQtfAV6sWiYaZ iDh0lm3yDqDFoISKTgULaaaTmAj4jhbU3vo3jXXit6f7lohNVFyGSrwLucfMWjqlm13d JOTg== 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 j9-v6si15256367plk.153.2018.09.10.06.24.58; Mon, 10 Sep 2018 06:25:44 -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 S1728887AbeIJSOS (ORCPT + 99 others); Mon, 10 Sep 2018 14:14:18 -0400 Received: from smtp20.cstnet.cn ([159.226.251.20]:53188 "EHLO cstnet.cn" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728241AbeIJSOS (ORCPT ); Mon, 10 Sep 2018 14:14:18 -0400 Received: from pw-vbox.higon.com (unknown [182.150.46.145]) by APP-10 (Coremail) with SMTP id tACowACHjcV_b5ZbiCSaCQ--.1553S2; Mon, 10 Sep 2018 21:20:03 +0800 (CST) From: Pu Wen To: tglx@linutronix.de, mingo@redhat.com, hpa@zytor.com, x86@kernel.org, thomas.lendacky@amd.com, bp@alien8.de, pbonzini@redhat.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 v6 13/16] ACPI, x86: Add Hygon Dhyana support Date: Mon, 10 Sep 2018 21:19:57 +0800 Message-Id: X-Mailer: git-send-email 2.7.4 In-Reply-To: References: X-CM-TRANSID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TnIWIevJa73UjIFyT 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. Acked-by: Rafael J. Wysocki Signed-off-by: Pu Wen --- 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