]> 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)
commitda62ad5399eaf41019bb4a9af5cb4adf5c993256
tree8b6bf612d99d0b3ab9b8da0dae478b7bddd63cfc
parent6011534336b1384f417f85f90ef944df8bd8079a
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