]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commitdiff
x86: msr-index.h: define HWP.EPP values
authorLen Brown <len.brown@intel.com>
Sat, 25 Feb 2017 16:56:29 +0000 (11:56 -0500)
committerLen Brown <len.brown@intel.com>
Sat, 29 Apr 2017 04:09:57 +0000 (00:09 -0400)
The Hardware Performance State request MSR has a field
to express the "Energy Performance Preference" (HWP.EPP).

Decode that field so the definition may be shared by
by the intel_pstate driver and any utilities that
decode the same register.

Signed-off-by: Len Brown <len.brown@intel.com>
arch/x86/include/asm/msr-index.h

index a92d9bd154f6a3b4cb2206975e93487215e565ca..50c0c3204a9236def252e50a8f0c66650647a8ae 100644 (file)
 #define HWP_MAX_PERF(x)                ((x & 0xff) << 8)
 #define HWP_DESIRED_PERF(x)            ((x & 0xff) << 16)
 #define HWP_ENERGY_PERF_PREFERENCE(x)  ((x & 0xff) << 24)
+#define HWP_EPP_PERFORMANCE            0x00
+#define HWP_EPP_BALANCE_PERFORMANCE    0x80
+#define HWP_EPP_BALANCE_POWERSAVE      0xC0
+#define HWP_EPP_POWERSAVE              0xFF
 #define HWP_ACTIVITY_WINDOW(x)         ((x & 0xff3) << 32)
 #define HWP_PACKAGE_CONTROL(x)         ((x & 0x1) << 42)