public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] x86/cpu: add some advanced power management bits
@ 2016-03-25  2:08 Huang Rui
  2016-03-25 11:37 ` Borislav Petkov
  2016-03-29  9:16 ` [tip:x86/urgent] x86/cpu: Add " tip-bot for Huang Rui
  0 siblings, 2 replies; 3+ messages in thread
From: Huang Rui @ 2016-03-25  2:08 UTC (permalink / raw)
  To: Borislav Petkov, Thomas Gleixner, Len Brown, Rafael J. Wysocki,
	Ingo Molnar, H. Peter Anvin, Fenghua Yu, Tony Luck,
	Andy Lutomirski, Peter Zijlstra
  Cc: linux-kernel, x86, Fengguang Wu, Sherry Hurwitz, Tony Li,
	Huang Rui

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@alien8.de>
Signed-off-by: Huang Rui <ray.huang@amd.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

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-03-29  9:17 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-25  2:08 [PATCH] x86/cpu: add some advanced power management bits Huang Rui
2016-03-25 11:37 ` Borislav Petkov
2016-03-29  9:16 ` [tip:x86/urgent] x86/cpu: Add " tip-bot for Huang Rui

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox