summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 13bbf9b)
raw | patch | inline | side by side (parent: 13bbf9b)
author | Vincent Brillault <git@lerya.net> | |
Sat, 23 Aug 2014 07:28:07 +0000 (09:28 +0200) | ||
committer | Vincent Brillault <git@lerya.net> | |
Sat, 28 Feb 2015 06:35:40 +0000 (07:35 +0100) |
src/turbostat.c | patch | blob | history |
diff --git a/src/turbostat.c b/src/turbostat.c
index ea4f92fdce4ff36be63e5d9103f05b4fe367792d..c7778604e46dae650ba89da7288b235262f923c0 100644 (file)
--- a/src/turbostat.c
+++ b/src/turbostat.c
@@ -991,7 +991,7 @@ set_temperature_target(struct thread_data *t, struct core_data *c, struct pkg_da
return 0;
}
- if (get_msr(0, MSR_IA32_TEMPERATURE_TARGET, &msr))
+ if (get_msr(cpu, MSR_IA32_TEMPERATURE_TARGET, &msr))
goto guess;
target_c_local = (msr >> 16) & 0x7F;