Home
last modified time | relevance | path

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

/linux-4.4.14/drivers/thermal/
Dintel_powerclamp.c337 static u64 msr_last, tsc_last; in powerclamp_adjust_controls() local
346 if (!msr_last || !tsc_last) in powerclamp_adjust_controls()
348 else if (tsc_now-tsc_last) { in powerclamp_adjust_controls()
350 do_div(val64, (tsc_now-tsc_last)); in powerclamp_adjust_controls()
356 tsc_last = tsc_now; in powerclamp_adjust_controls()
476 static u64 tsc_last; in poll_pkg_cstate() local
489 if (!msr_last || !tsc_last) in poll_pkg_cstate()
492 if (tsc_now - tsc_last) { in poll_pkg_cstate()
494 do_div(val64, (tsc_now - tsc_last)); in poll_pkg_cstate()
502 tsc_last = tsc_now; in poll_pkg_cstate()