]> git.baikalelectronics.ru Git - kernel.git/commit
intel_pstate: Remove freq calculation from intel_pstate_calc_busy()
authorPhilippe Longepe <philippe.longepe@linux.intel.com>
Sun, 6 Mar 2016 07:34:06 +0000 (08:34 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 10 Mar 2016 23:04:58 +0000 (00:04 +0100)
commit8fa520af50817d5f30d293f507c937f561b3e6b9
tree8b6bf612d99d0b3ab9b8da0dae478b7bddd63cfc
parent7349ec0470b62820ae226e30770b9d84a53ced9d
intel_pstate: Remove freq calculation from intel_pstate_calc_busy()

Use a helper function to compute the average pstate and call it only
where it is needed (only when tracing or in intel_pstate_get).

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