cpufreq: intel_pstate: Configurable algorithm to get target pstate
authorPhilippe Longepe <philippe.longepe@intel.com>
Fri, 4 Dec 2015 16:40:30 +0000 (17:40 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 10 Dec 2015 00:17:40 +0000 (01:17 +0100)
commit157386b6fc1465f292b66c4133409033650ad335
treedf9b3a1d8c5eac7670b4e0fdb8aeea2aeaee3b25
parent40be4c3ccbf4078e2f8426a7962879b7a447cde4
cpufreq: intel_pstate: Configurable algorithm to get target pstate

Target systems using different cpus have different power and performance
requirements. They may use different algorithms to get the next P-state
based on their power or performance preference.

For example, power-constrained systems may not want to use
high-performance P-states as aggressively as a full-size desktop or a
server platform. A server platform may want to run close to the max to
achieve better performance, while laptop-like systems may prefer
sacrificing performance for longer battery lifes.

For the above reasons, modify intel_pstate to allow the target P-state
selection algorithm to be depend on the CPU ID.

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