[prev in list] [next in list] [prev in thread] [next in thread]
List: git-commits-head
Subject: tools/power turbostat: correctly decode of ENERGY_PERFORMANCE_BIAS
From: "Linux Kernel Mailing List" <linux-kernel () vger ! kernel ! org>
Date: 2015-05-31 19:06:11
Message-ID: 20150531190611.994B0660EC6 () gitolite ! kernel ! org
[Download RAW message or body]
Gitweb: http://git.kernel.org/linus/;a=commit;h=e9be7dd62899194ebdd90d417fc6c07d5d157912
Commit: e9be7dd62899194ebdd90d417fc6c07d5d157912
Parent: fb5d432722e186c656285ccc088e35dbe24f6fd1
Refname: refs/heads/master
Author: Len Brown <len.brown@intel.com>
AuthorDate: Tue May 26 12:19:37 2015 -0400
Committer: Len Brown <len.brown@intel.com>
CommitDate: Wed May 27 18:04:00 2015 -0400
tools/power turbostat: correctly decode of ENERGY_PERFORMANCE_BIAS
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 | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/power/x86/turbostat/turbostat.c b/tools/power/x86/turbostat/turbostat.c
index 256a5e1..f92211e 100644
--- 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 & 0x7) {
+ switch (msr & 0xF) {
case ENERGY_PERF_BIAS_PERFORMANCE:
epb_string = "performance";
break;
--
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic