x86: Look for IA32_ENERGY_PERF_BIAS support
commitec43b20a4e00cccdf8705b60e3ddef95349fff6b
authorVenkatesh Pallipadi <venki@google.com>
Fri, 4 Jun 2010 03:22:28 +0000 (3 23:22 -0400)
committerAndi Kleen <ak@linux.intel.com>
Mon, 1 Aug 2011 20:55:02 +0000 (1 13:55 -0700)
tree90445e97191cba876bb1d4110ea772b55db033da
parentccbe5280c9adf5955c0baeff57e8a549a27ebf46
x86: Look for IA32_ENERGY_PERF_BIAS support

[ upstream commit 23016bf0 ]

The new IA32_ENERGY_PERF_BIAS MSR allows system software to give
hardware a hint whether OS policy favors more power saving,
or more performance.  This allows the OS to have some influence
on internal hardware power/performance tradeoffs where the OS
has previously had no influence.

The support for this feature is indicated by CPUID.06H.ECX.bit3,
as documented in the Intel Architectures Software Developer's Manual.

This patch discovers support of this feature and displays it
as "epb" in /proc/cpuinfo.

Signed-off-by: Venkatesh Pallipadi <venki@google.com>
Signed-off-by: Andi Kleen <ak@linux.intel.com>
LKML-Reference: <alpine.LFD.2.00.1006032310160.6669@localhost.localdomain>
Signed-off-by: Len Brown <len.brown@intel.com>
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
arch/x86/include/asm/cpufeature.h
arch/x86/include/asm/msr-index.h
arch/x86/kernel/cpu/addon_cpuid_features.c