Lines Matching refs:cycles
14 u64 vdso_calc_delta(u64 cycles, u64 last, u64 mask, u32 mult) in vdso_calc_delta() argument
16 return ((cycles - last) & mask) * mult; in vdso_calc_delta()
42 static inline bool vdso_cycles_ok(u64 cycles) in vdso_cycles_ok() argument
55 u64 cycles, last, ns; in do_hres_timens() local
73 cycles = __arch_get_hw_counter(vd->clock_mode, vd); in do_hres_timens()
74 if (unlikely(!vdso_cycles_ok(cycles))) in do_hres_timens()
78 ns += vdso_calc_delta(cycles, last, vd->mask, vd->mult); in do_hres_timens()
114 u64 cycles, last, sec, ns; in do_hres() local
144 cycles = __arch_get_hw_counter(vd->clock_mode, vd); in do_hres()
145 if (unlikely(!vdso_cycles_ok(cycles))) in do_hres()
149 ns += vdso_calc_delta(cycles, last, vd->mask, vd->mult); in do_hres()