]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit - drivers/cpufreq/intel_pstate.c
intel_pstate: use updated msr-index.h HWP.EPP values
authorLen Brown <len.brown@intel.com>
Tue, 2 May 2017 03:06:08 +0000 (23:06 -0400)
committerLen Brown <len.brown@intel.com>
Fri, 12 May 2017 01:27:53 +0000 (21:27 -0400)
commit3cedbc5a6d7f7c5539e139f89ec9f6e1ed668418
treea00534027c4ac7a238791527a0a9ccc810ab87e9
parent4beec1d7519691b4b6c6b764e75b4e694a09c5f7
intel_pstate: use updated msr-index.h HWP.EPP values

intel_pstate exports sysfs attributes for setting and observing HWP.EPP.
These attributes use strings to describe 4 operating states, and
inside the driver, these strings are mapped to numerical register
values.

The authorative mapping between the strings and numerical HWP.EPP values
are now globally defined in msr-index.h, replacing the out-dated
mapping that were open-coded into intel_pstate.c

new old string
--- --- ------
  0   0 performance
128  64 balance_performance
192 128 balance_power
255 192 power

Note that the HW and BIOS default value on most system is 128,
which intel_pstate will now call "balance_performance"
while it used to call it "balance_power".

Signed-off-by: Len Brown <len.brown@intel.com>
drivers/cpufreq/intel_pstate.c