Home
last modified time | relevance | path

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

/Linux-v6.1/drivers/thermal/intel/
Dintel_powerclamp.c320 static u64 msr_last, tsc_last; in powerclamp_adjust_controls() local
329 if (!msr_last || !tsc_last) in powerclamp_adjust_controls()
332 val64 = 100*(msr_now-msr_last); in powerclamp_adjust_controls()
338 msr_last = msr_now; in powerclamp_adjust_controls()
430 static u64 msr_last; in poll_pkg_cstate() local
441 if (!msr_last || !tsc_last) in poll_pkg_cstate()
445 val64 = 100 * (msr_now - msr_last); in poll_pkg_cstate()
452 msr_last = msr_now; in poll_pkg_cstate()
/Linux-v6.1/tools/power/x86/turbostat/
Dturbostat.c3395 unsigned long long msr_cur, msr_last; in get_msr_sum() local
3407 msr_last = per_cpu_msr_sum[cpu].entries[idx].last; in get_msr_sum()
3408 DELTA_WRAP32(msr_cur, msr_last); in get_msr_sum()
3409 *msr = msr_last + per_cpu_msr_sum[cpu].entries[idx].sum; in get_msr_sum()
3426 unsigned long long msr_cur, msr_last; in update_msr_sum() local
3440 msr_last = per_cpu_msr_sum[cpu].entries[i].last; in update_msr_sum()
3443 DELTA_WRAP32(msr_cur, msr_last); in update_msr_sum()
3444 per_cpu_msr_sum[cpu].entries[i].sum += msr_last; in update_msr_sum()