From: Vincent Brillault Date: Sat, 23 Aug 2014 07:28:07 +0000 (+0200) Subject: Turbostat set_temperature_target: get msr from the correct cpu X-Git-Tag: collectd-5.5.0~24^2~64 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=899a5b70ba79ceea8f7db3c63871ad0d8496daa8;p=collectd.git Turbostat set_temperature_target: get msr from the correct cpu --- diff --git a/src/turbostat.c b/src/turbostat.c index ea4f92fd..c7778604 100644 --- 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;