diff options
| -rw-r--r-- | tools/power/x86/turbostat/turbostat.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/power/x86/turbostat/turbostat.c b/tools/power/x86/turbostat/turbostat.c index 7c9d8e71eb9e..d0396af99fa0 100644 --- a/tools/power/x86/turbostat/turbostat.c +++ b/tools/power/x86/turbostat/turbostat.c | |||
| @@ -1971,13 +1971,13 @@ int set_temperature_target(struct thread_data *t, struct core_data *c, struct pk | |||
| 1971 | if (get_msr(0, MSR_IA32_TEMPERATURE_TARGET, &msr)) | 1971 | if (get_msr(0, MSR_IA32_TEMPERATURE_TARGET, &msr)) |
| 1972 | goto guess; | 1972 | goto guess; |
| 1973 | 1973 | ||
| 1974 | target_c_local = (msr >> 16) & 0x7F; | 1974 | target_c_local = (msr >> 16) & 0xFF; |
| 1975 | 1975 | ||
| 1976 | if (verbose) | 1976 | if (verbose) |
| 1977 | fprintf(stderr, "cpu%d: MSR_IA32_TEMPERATURE_TARGET: 0x%08llx (%d C)\n", | 1977 | fprintf(stderr, "cpu%d: MSR_IA32_TEMPERATURE_TARGET: 0x%08llx (%d C)\n", |
| 1978 | cpu, msr, target_c_local); | 1978 | cpu, msr, target_c_local); |
| 1979 | 1979 | ||
| 1980 | if (target_c_local < 85 || target_c_local > 127) | 1980 | if (!target_c_local) |
| 1981 | goto guess; | 1981 | goto guess; |
| 1982 | 1982 | ||
| 1983 | tcc_activation_temp = target_c_local; | 1983 | tcc_activation_temp = target_c_local; |
