ACPI, x86: Add Zhaoxin processors support for NONSTOP TSC
authorTony W Wang-oc <TonyWWang-oc@zhaoxin.com>
Tue, 18 Jun 2019 08:37:14 +0000 (08:37 +0000)
committerThomas Gleixner <tglx@linutronix.de>
Sat, 22 Jun 2019 09:45:57 +0000 (11:45 +0200)
Zhaoxin CPUs have NONSTOP TSC feature, so enable the ACPI
driver support for it.

Signed-off-by: Tony W Wang-oc <TonyWWang-oc@zhaoxin.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: "hpa@zytor.com" <hpa@zytor.com>
Cc: "gregkh@linuxfoundation.org" <gregkh@linuxfoundation.org>
Cc: "rjw@rjwysocki.net" <rjw@rjwysocki.net>
Cc: "lenb@kernel.org" <lenb@kernel.org>
Cc: David Wang <DavidWang@zhaoxin.com>
Cc: "Cooper Yan(BJ-RD)" <CooperYan@zhaoxin.com>
Cc: "Qiyuan Wang(BJ-RD)" <QiyuanWang@zhaoxin.com>
Cc: "Herry Yang(BJ-RD)" <HerryYang@zhaoxin.com>
Link: https://lkml.kernel.org/r/d1cfd937dabc44518d42038b55522c53@zhaoxin.com
drivers/acpi/acpi_pad.c
drivers/acpi/processor_idle.c

index 6b3f1217a23711069894af3ece125e3cf3a33cac..e7dc0133f81732744dee63609bc0a1e280d1403e 100644 (file)
@@ -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.
index e387a258d649790bb4d0a7f678d1999e965179f0..ed56c6d20b0848d9ab5f437c269ba230ef9cad73 100644 (file)
@@ -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.