summaryrefslogtreecommitdiff
path: root/drivers/cpufreq/mt8173-cpufreq.c
diff options
context:
space:
mode:
authorPhilippe Longepe <philippe.longepe@intel.com>2015-12-04 19:40:32 +0300
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2015-12-10 03:17:40 +0300
commite70eed2b64545ab5c9d2f4d43372d79762f1b985 (patch)
treedd00eb9d051a1ee5ba0bedd474cc1c085278ab31 /drivers/cpufreq/mt8173-cpufreq.c
parent157386b6fc1465f292b66c4133409033650ad335 (diff)
downloadlinux-e70eed2b64545ab5c9d2f4d43372d79762f1b985.tar.xz
cpufreq: intel_pstate: Account for non C0 time
The current function to calculate cpu utilization uses the average P-state ratio (APerf/Mperf) scaled by the ratio of the current P-state to the max available non-turbo one. This leads to an overestimation of utilization which causes higher-performance P-states to be selected more often and that leads to increased energy consumption. This is a problem for low-power systems, so it is better to use a different utilization calculation algorithm for them. Namely, the Percent Busy value (or load) can be estimated as the ratio of the MPERF counter that runs at a constant rate only during active periods (C0) to the time stamp counter (TSC) that also runs (at the same rate) during idle. That is: Percent Busy = 100 * (delta_mperf / delta_tsc) Use this algorithm for platforms with SoCs based on the Airmont and Silvermont Atom cores. Signed-off-by: Philippe Longepe <philippe.longepe@intel.com> Signed-off-by: Stephane Gasparini <stephane.gasparini@intel.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/cpufreq/mt8173-cpufreq.c')
0 files changed, 0 insertions, 0 deletions