x86, amd: Move CPB flag from "flags" to "power management" section in /proc/cpuinfo
PATCH 1/1 x86, amd: Move CPB flag from "flags" to "power management" section in /proc/cpuinfo
From: Andreas Herrmann <[email protected]>
Avoid nameless flag in /proc/cpuinfo, ie.
power management: ts tm 100mhzsteps hwpstate [9]
and indicate CPB support rather in the power management section instead of the general feature flags section of /proc/cpuinfo. The flag is provided with the same cpuid function like the other power management flags (CPUID Fn8000_0007_EDX).
Signed-off-by Andreas Herrmann <[email protected]>
--- arch/x86/include/asm/cpufeature.h | 2 +- arch/x86/kernel/cpu/powerflags.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-)
arch/x86/include/asm/cpufeature.h +1 -1
@@ -167,7 +167,7 @@*/ #define X86_FEATURE_IDA (7*32+ 0)/* Intel Dynamic Acceleration */ #define X86_FEATURE_ARAT (7*32+ 1)/* Always Running APIC Timer */ -#define X86_FEATURE_CPB (7*32+ 2)/* AMD Core Performance Boost */ +#define X86_FEATURE_CPB (7*32+ 2)/* "" AMD Core Performance Boost */ #define X86_FEATURE_EPB (7*32+ 3)/* IA32_ENERGY_PERF_BIAS support */ #define X86_FEATURE_XSAVEOPT (7*32+ 4)/* Optimized Xsave */ #define X86_FEATURE_PLN (7*32+ 5)/* Intel Power Limit Notification */
arch/x86/kernel/cpu/powerflags.c +2 -1
@@ -16,5 +16,6 @@ const char *const x86_power_flags[32] = {"100mhzsteps" ,"hwpstate" ,"" ,/* tsc invariant mapped to constant_tsc */ - /* nothing */ + "cpb", + /* nothing */ };
Signature · 1 line
1.6.4.4