cpufreq: intel_pstate: Proportional algorithm for Atom
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 6 Oct 2016 12:07:51 +0000 (14:07 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 12 Oct 2016 18:58:13 +0000 (20:58 +0200)
commit0843e83c1a4aa67e08f424430526c948d591d5f1
tree3e86a9c1e9fe52ff303122874e4c3b2aff9551f3
parentf00593a4bdd22e0885db89df8ee8afcc6867994f
cpufreq: intel_pstate: Proportional algorithm for Atom

The PID algorithm used by the intel_pstate driver tends to drive
performance to the minimum for workloads with utilization below the
setpoint, which is undesirable, so replace it with a modified
"proportional" algorithm on Atom.

The new algorithm will set the new P-state to be 1.25 times the
available maximum times the (frequency-invariant) utilization during
the previous sampling period except when the target P-state computed
this way is lower than the average P-state during the previous
sampling period.  In the latter case, it will increase the target by
50% of the difference between it and the average P-state to prevent
performance from dropping down too fast in some cases.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Tested-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
drivers/cpufreq/intel_pstate.c