Home
last modified time | relevance | path

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

/Linux-v4.19/drivers/thermal/
Dintel_powerclamp.c346 static u64 msr_last, tsc_last; in powerclamp_adjust_controls() local
355 if (!msr_last || !tsc_last) in powerclamp_adjust_controls()
357 else if (tsc_now-tsc_last) { in powerclamp_adjust_controls()
359 do_div(val64, (tsc_now-tsc_last)); in powerclamp_adjust_controls()
365 tsc_last = tsc_now; in powerclamp_adjust_controls()
464 static u64 tsc_last; in poll_pkg_cstate() local
474 if (!msr_last || !tsc_last) in poll_pkg_cstate()
477 if (tsc_now - tsc_last) { in poll_pkg_cstate()
479 do_div(val64, (tsc_now - tsc_last)); in poll_pkg_cstate()
486 tsc_last = tsc_now; in poll_pkg_cstate()