Home
last modified time | relevance | path

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

/openbmc/linux/drivers/thermal/intel/
H A Dintel_powerclamp.c462 static u64 msr_last, tsc_last; in powerclamp_adjust_controls() local
471 if (!msr_last || !tsc_last) in powerclamp_adjust_controls()
473 else if (tsc_now-tsc_last) { in powerclamp_adjust_controls()
475 do_div(val64, (tsc_now-tsc_last)); in powerclamp_adjust_controls()
481 tsc_last = tsc_now; in powerclamp_adjust_controls()
530 static u64 tsc_last; in poll_pkg_cstate() local
540 if (!msr_last || !tsc_last) in poll_pkg_cstate()
543 if (tsc_now - tsc_last) { in poll_pkg_cstate()
545 do_div(val64, (tsc_now - tsc_last)); in poll_pkg_cstate()
552 tsc_last = tsc_now; in poll_pkg_cstate()