[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1528550633-28441-1-git-send-email-puwen@hygon.cn>
Date: Sat, 9 Jun 2018 21:23:53 +0800
From: Pu Wen <puwen@...on.cn>
To: rjw@...ysocki.net, lenb@...nel.org, zhangpanyong@...on.cn
Cc: tglx@...utronix.de, mingo@...hat.com, hpa@...or.com,
x86@...nel.org, thomas.lendacky@....com, peterz@...radead.org,
tony.luck@...el.com, bp@...en8.de, pbonzini@...hat.com,
rkrcmar@...hat.com, boris.ostrovsky@...cle.com, jgross@...e.com,
viresh.kumar@...aro.org, mchehab@...nel.org, trenn@...e.com,
shuah@...nel.org, linux-kernel@...r.kernel.org,
linux-arch@...r.kernel.org, linux-x86_64@...r.kernel.org,
linux-pci@...r.kernel.org, linux-acpi@...r.kernel.org,
linux-edac@...r.kernel.org, linux-pm@...r.kernel.org,
kvm@...r.kernel.org, xen-devel@...ts.xenproject.org,
Pu Wen <puwen@...on.cn>
Subject: [PATCH 08/11] driver/acpi: Add support for Hygon's Dhyana Family 18h processor
This patch enables the ACPI driver support to Hygon Family 18h CPU:
- Add Hygon support in power_saving_mwait_init().
- Add Hygon support in lapic_timer_state_broadcast().
Signed-off-by: Pu Wen <puwen@...on.cn>
---
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
Powered by blists - more mailing lists