Turbostat set_temperature_target: get msr from the correct cpu
authorVincent Brillault <git@lerya.net>
Sat, 23 Aug 2014 07:28:07 +0000 (09:28 +0200)
committerVincent Brillault <git@lerya.net>
Sat, 28 Feb 2015 06:35:40 +0000 (07:35 +0100)
src/turbostat.c

index ea4f92f..c777860 100644 (file)
@@ -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;