cpufreq: intel_pstate: Make HWP limits compatible with legacy
authorSrinivas Pandruvada <[email protected]>
Wed, 18 Jan 2017 18:48:24 +0000 (10:48 -0800)
committerRafael J. Wysocki <[email protected]>
Fri, 3 Feb 2017 23:05:32 +0000 (00:05 +0100)
commit4e5d3f713b619e404618fc280ce861e473605f85
tree8bf13d6d6fa0436449d534999498222695ce7f16
parent7d9a8a9f4ee682e299fa2acee48031713aef1b76
cpufreq: intel_pstate: Make HWP limits compatible with legacy

Under HWP the performance limits are calculated using max_perf_pct
and min_perf_pct using possible performance, not available performance.
The available performance can be reduced by no_turbo setting. To make
compatible with legacy mode, use max/min performance percentage with
respect to available performance.

Signed-off-by: Srinivas Pandruvada <[email protected]>
Signed-off-by: Rafael J. Wysocki <[email protected]>
drivers/cpufreq/intel_pstate.c