aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>2016-09-29 21:13:34 -0400
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2016-10-09 12:54:57 -0400
commitf00593a4bdd22e0885db89df8ee8afcc6867994f (patch)
tree6e3c771a0e778a435913d355d0093ccba8d4ae07
parentf9f4872df6e1801572949f8a370c886122d4b6da (diff)
cpufreq: intel_pstate: Clarify comment in get_target_pstate_use_performance()
Make the comment explaining the meaning of the perf_scaled variable in get_target_pstate_use_performance() more straightforward. Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
-rw-r--r--drivers/cpufreq/intel_pstate.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/cpufreq/intel_pstate.c b/drivers/cpufreq/intel_pstate.c
index bc976a3db253..1c7b91c5805b 100644
--- a/drivers/cpufreq/intel_pstate.c
+++ b/drivers/cpufreq/intel_pstate.c
@@ -1251,10 +1251,11 @@ static inline int32_t get_target_pstate_use_performance(struct cpudata *cpu)
1251 u64 duration_ns; 1251 u64 duration_ns;
1252 1252
1253 /* 1253 /*
1254 * perf_scaled is the average performance during the last sampling 1254 * perf_scaled is the ratio of the average P-state during the last
1255 * period scaled by the ratio of the maximum P-state to the P-state 1255 * sampling period to the P-state requested last time (in percent).
1256 * requested last time (in percent). That measures the system's 1256 *
1257 * response to the previous P-state selection. 1257 * That measures the system's response to the previous P-state
1258 * selection.
1258 */ 1259 */
1259 max_pstate = cpu->pstate.max_pstate_physical; 1260 max_pstate = cpu->pstate.max_pstate_physical;
1260 current_pstate = cpu->pstate.current_pstate; 1261 current_pstate = cpu->pstate.current_pstate;