The patch titled x86, cpu: add AMD core boosting feature flag to /proc/cpuinfo has been removed from the -mm tree. Its filename was x86-cpu-add-amd-core-boosting-feature-flag-to-proc-cpuinfo.patch This patch was dropped because it was merged into mainline or a subsystem tree The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/ ------------------------------------------------------ Subject: x86, cpu: add AMD core boosting feature flag to /proc/cpuinfo From: Borislav Petkov <borislav.petkov@xxxxxxx> By semi-popular demand, this adds the Core Performance Boost feature flag to /proc/cpuinfo. Possible use case for this is userspace tools like cpufreq-aperf, for example, so that they don't have to jump through hoops of accessing "/dev/cpu/%d/cpuid" in order to check for CPB hw support, or call cpuid from userspace. Signed-off-by: Borislav Petkov <borislav.petkov@xxxxxxx> Reviewed-by: Thomas Renninger <trenn@xxxxxxx> Cc: Ingo Molnar <mingo@xxxxxxx> Cc: Thomas Gleixner <tglx@xxxxxxxxxxxxx> Cc: "H. Peter Anvin" <hpa@xxxxxxxxx> Cc: Dave Jones <davej@xxxxxxxxxxxxxxxxx> Cc: Mark Langsdorf <mark.langsdorf@xxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- arch/x86/include/asm/cpufeature.h | 1 + arch/x86/kernel/cpu/addon_cpuid_features.c | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff -puN arch/x86/include/asm/cpufeature.h~x86-cpu-add-amd-core-boosting-feature-flag-to-proc-cpuinfo arch/x86/include/asm/cpufeature.h --- a/arch/x86/include/asm/cpufeature.h~x86-cpu-add-amd-core-boosting-feature-flag-to-proc-cpuinfo +++ a/arch/x86/include/asm/cpufeature.h @@ -161,6 +161,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 */ /* Virtualization flags: Linux defined */ #define X86_FEATURE_TPR_SHADOW (8*32+ 0) /* Intel TPR Shadow */ diff -puN arch/x86/kernel/cpu/addon_cpuid_features.c~x86-cpu-add-amd-core-boosting-feature-flag-to-proc-cpuinfo arch/x86/kernel/cpu/addon_cpuid_features.c --- a/arch/x86/kernel/cpu/addon_cpuid_features.c~x86-cpu-add-amd-core-boosting-feature-flag-to-proc-cpuinfo +++ a/arch/x86/kernel/cpu/addon_cpuid_features.c @@ -30,8 +30,9 @@ void __cpuinit init_scattered_cpuid_feat const struct cpuid_bit *cb; static const struct cpuid_bit __cpuinitconst cpuid_bits[] = { - { X86_FEATURE_IDA, CR_EAX, 1, 0x00000006 }, - { X86_FEATURE_ARAT, CR_EAX, 2, 0x00000006 }, + { X86_FEATURE_IDA, CR_EAX, 1, 0x00000006 }, + { X86_FEATURE_ARAT, CR_EAX, 2, 0x00000006 }, + { X86_FEATURE_CPB, CR_EDX, 9, 0x80000007 }, { X86_FEATURE_NPT, CR_EDX, 0, 0x8000000a }, { X86_FEATURE_LBRV, CR_EDX, 1, 0x8000000a }, { X86_FEATURE_SVML, CR_EDX, 2, 0x8000000a }, _ Patches currently in -mm which might be from borislav.petkov@xxxxxxx are linux-next.patch x86-add-optimized-popcnt-variants.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html