Searched refs:cycle_now (Results 1 – 3 of 3) sorted by relevance
122 u64 cycle_now, delta, nsec; in get_ns() local127 cycle_now = read_r4k_count(); in get_ns()134 delta = (cycle_now - data->cs_cycle_last) & data->cs_mask; in get_ns()
123 u64 cycle_now; in get_ns() local126 cycle_now = arch_counter_get_cntvct(); in get_ns()128 cycle_delta = (cycle_now - vdata->cs_cycle_last) & vdata->cs_mask; in get_ns()
1426 static inline u64 vgettsc(cycle_t *cycle_now) in vgettsc() argument1431 *cycle_now = read_tsc(); in vgettsc()1433 v = (*cycle_now - gtod->clock.cycle_last) & gtod->clock.mask; in vgettsc()1437 static int do_monotonic_boot(s64 *t, cycle_t *cycle_now) in do_monotonic_boot() argument1448 ns += vgettsc(cycle_now); in do_monotonic_boot()1458 static bool kvm_get_time_and_clockread(s64 *kernel_ns, cycle_t *cycle_now) in kvm_get_time_and_clockread() argument1464 return do_monotonic_boot(kernel_ns, cycle_now) == VCLOCK_TSC; in kvm_get_time_and_clockread()