From: Srinivas Pandruvada Date: Wed, 4 May 2016 22:07:34 +0000 (-0700) Subject: cpufreq: intel_pstate: Ignore _PPC processing under HWP X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e59a8f7ff4573fd54f1acec0e29280a6556fdde9;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git cpufreq: intel_pstate: Ignore _PPC processing under HWP When HWP (hardware P states) feature is active, the ACPI _PSS and _PPC is not used. So ignore processing for _PPC limits. Signed-off-by: Srinivas Pandruvada Signed-off-by: Rafael J. Wysocki --- diff --git a/drivers/cpufreq/intel_pstate.c b/drivers/cpufreq/intel_pstate.c index a0823e84ceca..74453fe546c1 100644 --- a/drivers/cpufreq/intel_pstate.c +++ b/drivers/cpufreq/intel_pstate.c @@ -380,6 +380,9 @@ static void intel_pstate_init_acpi_perf_limits(struct cpufreq_policy *policy) int ret; int i; + if (hwp_active) + return; + if (!intel_pstate_get_ppc_enable_status()) return;