Skip to contentSkip to conversation

ACPI, x86: add Zhaoxin processors support for NONSTOP TSC

PATCH In review Tony W Wang-oc 2 participants 2 messages Jun 18, 2019 – Jun 22, 2019 ACPI

lore
Share & tools
lore
#0 lore raw

PATCH v2 2/3 ACPI, x86: add Zhaoxin processors support for NONSTOP TSC

Zhaoxin CPUs have NONSTOP TSC feature, so enable the ACPI driver support for it.

---
 drivers/acpi/acpi_pad.c       | 1 +
 drivers/acpi/processor_idle.c | 1 +
 2 files changed, 2 insertions(+)
drivers/acpi/acpi_pad.c +1 -0
index 6b3f121..e7dc013 100644
@@ -64,6 +64,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.
drivers/acpi/processor_idle.c +1 -0
index e387a25..ed56c6d 100644
@@ -196,6 +196,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.
Signature · 1 line
2.7.4
#1 lore raw

[tip:x86/cpu] ACPI, x86: Add Zhaoxin processors support for NONSTOP TSC

ACPI, x86: Add Zhaoxin processors support for NONSTOP TSC
Commit-ID:  773b2f30a3fc026f3ed121a8b945b0ae19b64ec5
Gitweb:     https://git.kernel.org/tip/773b2f30a3fc026f3ed121a8b945b0ae19b64ec5
Author:     Tony W Wang-oc <[email protected]>
AuthorDate: Tue, 18 Jun 2019 08:37:14 +0000
Committer:  Thomas Gleixner <[email protected]>
CommitDate: Sat, 22 Jun 2019 11:45:57 +0200

ACPI, x86: Add Zhaoxin processors support for NONSTOP TSC

Zhaoxin CPUs have NONSTOP TSC feature, so enable the ACPI driver support for it.

---
 drivers/acpi/acpi_pad.c       | 1 +
 drivers/acpi/processor_idle.c | 1 +
 2 files changed, 2 insertions(+)
drivers/acpi/acpi_pad.c +1 -0
index 6b3f1217a237..e7dc0133f817 100644
@@ -64,6 +64,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.
drivers/acpi/processor_idle.c +1 -0
index e387a258d649..ed56c6d20b08 100644
@@ -196,6 +196,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.