projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fb5d432
)
tools/power turbostat: correctly decode of ENERGY_PERFORMANCE_BIAS
author
Len Brown
<len.brown@intel.com>
Tue, 26 May 2015 16:19:37 +0000
(12:19 -0400)
committer
Len Brown
<len.brown@intel.com>
Wed, 27 May 2015 22:04:00 +0000
(18:04 -0400)
When EPB is 0xF, turbosat was incorrectly describing it as "custom"
instead of calling it "powersave":
< cpu0: MSR_IA32_ENERGY_PERF_BIAS: 0x0000000f (custom)
> cpu0: MSR_IA32_ENERGY_PERF_BIAS: 0x0000000f (powersave)
Signed-off-by: Len Brown <len.brown@intel.com>
tools/power/x86/turbostat/turbostat.c
patch
|
blob
|
blame
|
history
diff --git
a/tools/power/x86/turbostat/turbostat.c
b/tools/power/x86/turbostat/turbostat.c
index 256a5e1de38155bb770c438478d576f6e2791ba6..f92211e9e70c3a2acfe3ede39d0024c8fc820047 100644
(file)
--- a/
tools/power/x86/turbostat/turbostat.c
+++ b/
tools/power/x86/turbostat/turbostat.c
@@
-1919,7
+1919,7
@@
int print_epb(struct thread_data *t, struct core_data *c, struct pkg_data *p)
if (get_msr(cpu, MSR_IA32_ENERGY_PERF_BIAS, &msr))
return 0;
- switch (msr & 0x
7
) {
+ switch (msr & 0x
F
) {
case ENERGY_PERF_BIAS_PERFORMANCE:
epb_string = "performance";
break;