cpufreq / intel_pstate: Change to scale off of max P-state
authorDirk Brandewie <dirk.j.brandewie@intel.com>
Thu, 18 Jul 2013 15:48:42 +0000 (08:48 -0700)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 23 Jul 2013 02:18:28 +0000 (04:18 +0200)
commit2134ed4d614349b2b4e8d7bb593baa9179b8dd1e
tree044cff8a3f4c619bfd077ebaa65a1ae2693d47e4
parent3b2f64d00c46e1e4e9bd0bb9bb12619adac27a4b
cpufreq / intel_pstate: Change to scale off of max P-state

Change to using max P-state instead of max turbo P-state.  This
change resolves two issues.

On a quiet system intel_pstate can fail to respond to a load change.

On CPU SKUs that have a limited number of P-states and no turbo range
intel_pstate fails to select the highest available P-state.

This change is suitable for stable v3.9+

References: https://bugzilla.kernel.org/show_bug.cgi?id=59481
Reported-and-tested-by: Arjan van de Ven <arjan@linux.intel.com>
Reported-and-tested-by: dsmythies@telus.net
Signed-off-by: Dirk Brandewie <dirk.j.brandewie@intel.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Cc: 3.9+ <stable@vger.kernel.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/intel_pstate.c