Re: [PATCH] x86/cpu: add some advanced power management bits

From: Borislav Petkov
Date: Fri Mar 25 2016 - 07:37:17 EST


On Fri, Mar 25, 2016 at 10:08:40AM +0800, Huang Rui wrote:
> Bit 11 of CPUID 8000_0007 edx is processor feedback interface.
> Bit 12 of CPUID 8000_0007 edx is accumulated power.
>
> So this patch fixes the output of cpuinfo, and add some new names to
> make it more meaningful.
>
> Reported-by: Borislav Petkov <bp@xxxxxxxxx>
> Signed-off-by: Huang Rui <ray.huang@xxxxxxx>
> ---
> arch/x86/kernel/cpu/powerflags.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/arch/x86/kernel/cpu/powerflags.c b/arch/x86/kernel/cpu/powerflags.c
> index 31f0f33..1dd8294 100644
> --- a/arch/x86/kernel/cpu/powerflags.c
> +++ b/arch/x86/kernel/cpu/powerflags.c
> @@ -18,4 +18,6 @@ const char *const x86_power_flags[32] = {
> "", /* tsc invariant mapped to constant_tsc */
> "cpb", /* core performance boost */
> "eff_freq_ro", /* Readonly aperf/mperf */
> + "proc_feedback", /* processor feedback interface */
> + "acc_power", /* accumulated power mechanism */
> };
> --

Tested-by: Borislav Petkov <bp@xxxxxxx>

--
Regards/Gruss,
Boris.

SUSE Linux GmbH, GF: Felix ImendÃrffer, Jane Smithard, Graham Norton, HRB 21284 (AG NÃrnberg)
--