platform/x86: intel_turbo_max_3: Remove restriction for HWP platforms
authorSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Mon, 12 Feb 2018 19:50:47 +0000 (11:50 -0800)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 15 Feb 2018 10:21:48 +0000 (12:21 +0200)
On systems supporting HWP (Hardware P-States) mode, we expected to
enumerate core priority via ACPI-CPPC tables. Unfortunately deployment of
TURBO 3.0 didn't use this method to show core priority. So users are not
able to utilize this feature in HWP mode.

So remove the loading restriction of this driver for HWP enabled systems.
Even if there are some systems, which are providing the core priority via
ACPI CPPC, this shouldn't cause any conflict as the source of priority
definition is same.

Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Reported-and-tested-and-reviewed-by: Arjan van de Ven <arjan@linux.intel.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
drivers/platform/x86/intel_turbo_max_3.c

index d4ea01805879b4c9049b1657fad6f6ddb9de27d9..a6d5aa0c3c479dbd7f345a3f5666ae0ef72e456d 100644 (file)
@@ -138,9 +138,6 @@ static int __init itmt_legacy_init(void)
        if (!id)
                return -ENODEV;
 
-       if (boot_cpu_has(X86_FEATURE_HWP))
-               return -ENODEV;
-
        ret = cpuhp_setup_state(CPUHP_AP_ONLINE_DYN,
                                "platform/x86/turbo_max_3:online",
                                itmt_legacy_cpu_online, NULL);