cpufreq: intel_pstate: Calculate guaranteed performance for HWP
authorSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Thu, 19 Jan 2017 23:03:14 +0000 (15:03 -0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 3 Feb 2017 23:05:33 +0000 (00:05 +0100)
commit8fc7554ae5cc381e18bffa2469333ad28453d557
tree1afadede41f1826f152e84b1e572fe2b9bbce7dd
parent4e5d3f713b619e404618fc280ce861e473605f85
cpufreq: intel_pstate: Calculate guaranteed performance for HWP

When HWP is active, turbo activation ratio is not used to calculate max
non turbo ratio. But on these systems the max non turbo ratio is decided
by config TDP settings.

This change removes usage of MSR_TURBO_ACTIVATION_RATIO for HWP systems,
instead directly use TDP ratios, when more than one TDPs are available.

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