Home
last modified time | relevance | path

Searched refs:msr_last (Results 1 – 2 of 2) sorted by relevance

/linux-5.19.10/drivers/thermal/intel/
Dintel_powerclamp.c328 static u64 msr_last, tsc_last; in powerclamp_adjust_controls() local
337 if (!msr_last || !tsc_last) in powerclamp_adjust_controls()
340 val64 = 100*(msr_now-msr_last); in powerclamp_adjust_controls()
346 msr_last = msr_now; in powerclamp_adjust_controls()
445 static u64 msr_last; in poll_pkg_cstate() local
456 if (!msr_last || !tsc_last) in poll_pkg_cstate()
460 val64 = 100 * (msr_now - msr_last); in poll_pkg_cstate()
467 msr_last = msr_now; in poll_pkg_cstate()
/linux-5.19.10/tools/power/x86/turbostat/
Dturbostat.c3402 unsigned long long msr_cur, msr_last; in get_msr_sum() local
3414 msr_last = per_cpu_msr_sum[cpu].entries[idx].last; in get_msr_sum()
3415 DELTA_WRAP32(msr_cur, msr_last); in get_msr_sum()
3416 *msr = msr_last + per_cpu_msr_sum[cpu].entries[idx].sum; in get_msr_sum()
3433 unsigned long long msr_cur, msr_last; in update_msr_sum() local
3447 msr_last = per_cpu_msr_sum[cpu].entries[i].last; in update_msr_sum()
3450 DELTA_WRAP32(msr_cur, msr_last); in update_msr_sum()
3451 per_cpu_msr_sum[cpu].entries[i].sum += msr_last; in update_msr_sum()