From 899a5b70ba79ceea8f7db3c63871ad0d8496daa8 Mon Sep 17 00:00:00 2001 From: Vincent Brillault Date: Sat, 23 Aug 2014 09:28:07 +0200 Subject: [PATCH] Turbostat set_temperature_target: get msr from the correct cpu --- src/turbostat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.30.2