Skip to contentSkip to conversation

x86/cpu: add some advanced power management bits

PATCH In review Huang Rui 3 participants 3 messages Mar 25, 2016 – Mar 29, 2016 x86

lore
Share & tools
lore

Huang Rui

author
#0 lore raw

PATCH 1/1 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.

---
 arch/x86/kernel/cpu/powerflags.c | 2 ++
 1 file changed, 2 insertions(+)
arch/x86/kernel/cpu/powerflags.c +2 -0
index 31f0f33..1dd8294 100644
@@ -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 */
 };
Signature · 1 line
1.9.1
Tested-by on v1 1/1
#1 lore raw
Quoted 17 lines · 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.

---
 arch/x86/kernel/cpu/powerflags.c | 2 ++
 1 file changed, 2 insertions(+)
arch/x86/kernel/cpu/powerflags.c +0 -0
index 31f0f33..1dd8294 100644

arch/x86/kernel/cpu/powerflags.c const char *const x86_power_flags[32] = {

Quoted 7 lines
arch/x86/kernel/cpu/powerflags.c +2 -1
@@ -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 */
 };
--
Signature · 5 lines
Regards/Gruss,
    Boris.

SUSE Linux GmbH, GF: Felix Imendörffer, Jane Smithard, Graham Norton, HRB 21284 (AG Nürnberg)
-- 
#2 lore raw

[tip:x86/urgent] x86/cpu: Add advanced power management bits

In reply to Huang Rui
x86/cpu: Add advanced power management bits
Commit-ID:  34a4cceb78e48c75d1b48b25352a3f3b2cc2b2da
Gitweb:     http://git.kernel.org/tip/34a4cceb78e48c75d1b48b25352a3f3b2cc2b2da
Author:     Huang Rui <[email protected]>
AuthorDate: Fri, 25 Mar 2016 10:08:40 +0800
Committer:  Thomas Gleixner <[email protected]>
CommitDate: Tue, 29 Mar 2016 11:12:11 +0200

x86/cpu: Add 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.

Print proper names in proc/cpuinfo

Cc Tony Li <[email protected]>
Cc Fenghua Yu <[email protected]>
Cc Tony Luck <[email protected]>
Cc Peter Zijlstra <[email protected]>
Cc "Rafael J. Wysocki" <[email protected]>
Cc Andy Lutomirski <[email protected]>
Cc Fengguang Wu <[email protected]>
Cc Sherry Hurwitz <[email protected]>
Cc Borislav Petkov <[email protected]>
Cc "Len Brown" <[email protected]>
---
 arch/x86/kernel/cpu/powerflags.c | 2 ++
 1 file changed, 2 insertions(+)
arch/x86/kernel/cpu/powerflags.c +2 -0
index 31f0f33..1dd8294 100644
@@ -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 */
 };