[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <1458871720-3209-1-git-send-email-ray.huang@amd.com>
Date: Fri, 25 Mar 2016 10:08:40 +0800
From: Huang Rui <ray.huang@....com>
To: Borislav Petkov <bp@...e.de>, Thomas Gleixner <tglx@...utronix.de>,
"Len Brown" <lenb@...nel.org>,
"Rafael J. Wysocki" <rjw@...ysocki.net>,
"Ingo Molnar" <mingo@...nel.org>, "H. Peter Anvin" <hpa@...or.com>,
Fenghua Yu <fenghua.yu@...el.com>,
Tony Luck <tony.luck@...el.com>,
Andy Lutomirski <luto@...capital.net>,
Peter Zijlstra <peterz@...radead.org>
CC: <linux-kernel@...r.kernel.org>, <x86@...nel.org>,
Fengguang Wu <fengguang.wu@...el.com>,
Sherry Hurwitz <sherry.hurwitz@....com>,
Tony Li <tony.li@....com>, Huang Rui <ray.huang@....com>
Subject: [PATCH] x86/cpu: add some advanced power management bits
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@...en8.de>
Signed-off-by: Huang Rui <ray.huang@....com>
---
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 */
};
--
1.9.1
Powered by blists - more mailing lists