Skip to contentSkip to conversation

ACPI, x86: add Zhaoxin processors support for NONSTOP TSC

PATCH New Tony W Wang-oc 1 participant 1 message Jun 17, 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 a47676a..c06306e 100644
@@ -73,6 +73,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 98d4ec5..fa95ce9 100644
@@ -209,6 +209,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