Searched refs:cycle_now (Results 1 - 4 of 4) sorted by relevance
/linux-4.1.27/kernel/time/ |
H A D | timecounter.c | 46 cycle_t cycle_now, cycle_delta; timecounter_read_delta() local 50 cycle_now = tc->cc->read(tc->cc); timecounter_read_delta() 53 cycle_delta = (cycle_now - tc->cycle_last) & tc->cc->mask; timecounter_read_delta() 60 tc->cycle_last = cycle_now; timecounter_read_delta()
|
H A D | timekeeping.c | 218 cycle_t cycle_now, delta; timekeeping_get_delta() local 221 cycle_now = tkr->read(tkr->clock); timekeeping_get_delta() 224 delta = clocksource_delta(cycle_now, tkr->cycle_last, tkr->mask); timekeeping_get_delta() 616 cycle_t cycle_now, delta; timekeeping_forward_now() local 619 cycle_now = tk->tkr_mono.read(clock); timekeeping_forward_now() 620 delta = clocksource_delta(cycle_now, tk->tkr_mono.cycle_last, tk->tkr_mono.mask); timekeeping_forward_now() 621 tk->tkr_mono.cycle_last = cycle_now; timekeeping_forward_now() 622 tk->tkr_raw.cycle_last = cycle_now; timekeeping_forward_now() 1363 cycle_t cycle_now, cycle_delta; timekeeping_resume() local 1386 cycle_now = tk->tkr_mono.read(clock); timekeeping_resume() 1388 cycle_now > tk->tkr_mono.cycle_last) { timekeeping_resume() 1394 cycle_delta = clocksource_delta(cycle_now, tk->tkr_mono.cycle_last, timekeeping_resume() 1421 tk->tkr_mono.cycle_last = cycle_now; timekeeping_resume() 1422 tk->tkr_raw.cycle_last = cycle_now; timekeeping_resume()
|
/linux-4.1.27/arch/arm/vdso/ |
H A D | vgettimeofday.c | 123 u64 cycle_now; get_ns() local 126 cycle_now = arch_counter_get_cntvct(); get_ns() 128 cycle_delta = (cycle_now - vdata->cs_cycle_last) & vdata->cs_mask; get_ns()
|
/linux-4.1.27/arch/x86/kvm/ |
H A D | x86.c | 1452 static inline u64 vgettsc(cycle_t *cycle_now) vgettsc() argument 1457 *cycle_now = read_tsc(); vgettsc() 1459 v = (*cycle_now - gtod->clock.cycle_last) & gtod->clock.mask; vgettsc() 1463 static int do_monotonic_boot(s64 *t, cycle_t *cycle_now) do_monotonic_boot() argument 1474 ns += vgettsc(cycle_now); do_monotonic_boot() 1484 static bool kvm_get_time_and_clockread(s64 *kernel_ns, cycle_t *cycle_now) kvm_get_time_and_clockread() argument 1490 return do_monotonic_boot(kernel_ns, cycle_now) == VCLOCK_TSC; kvm_get_time_and_clockread()
|
Completed in 186 milliseconds