Home
last modified time | relevance | path

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

/Linux-v5.10/arch/sparc/kernel/
Dvdso.c32 vdata->vclock_mode = tk->tkr_mono.clock->archdata.vclock_mode; in update_vsyscall()
33 vdata->clock.cycle_last = tk->tkr_mono.cycle_last; in update_vsyscall()
34 vdata->clock.mask = tk->tkr_mono.mask; in update_vsyscall()
35 vdata->clock.mult = tk->tkr_mono.mult; in update_vsyscall()
36 vdata->clock.shift = tk->tkr_mono.shift; in update_vsyscall()
39 vdata->wall_time_snsec = tk->tkr_mono.xtime_nsec; in update_vsyscall()
43 vdata->monotonic_time_snsec = tk->tkr_mono.xtime_nsec + in update_vsyscall()
45 tk->tkr_mono.shift); in update_vsyscall()
48 (((u64)NSEC_PER_SEC) << tk->tkr_mono.shift)) { in update_vsyscall()
50 ((u64)NSEC_PER_SEC) << tk->tkr_mono.shift; in update_vsyscall()
[all …]
/Linux-v5.10/kernel/time/
Dvsyscall.c24 vdata[CS_HRES_COARSE].cycle_last = tk->tkr_mono.cycle_last; in update_vdso_data()
25 vdata[CS_HRES_COARSE].mask = tk->tkr_mono.mask; in update_vdso_data()
26 vdata[CS_HRES_COARSE].mult = tk->tkr_mono.mult; in update_vdso_data()
27 vdata[CS_HRES_COARSE].shift = tk->tkr_mono.shift; in update_vdso_data()
37 nsec = tk->tkr_mono.xtime_nsec; in update_vdso_data()
38 nsec += ((u64)tk->wall_to_monotonic.tv_nsec << tk->tkr_mono.shift); in update_vdso_data()
39 while (nsec >= (((u64)NSEC_PER_SEC) << tk->tkr_mono.shift)) { in update_vdso_data()
40 nsec -= (((u64)NSEC_PER_SEC) << tk->tkr_mono.shift); in update_vdso_data()
49 nsec += (u64)tk->monotonic_to_boot.tv_nsec << tk->tkr_mono.shift; in update_vdso_data()
55 while (nsec >= (((u64)NSEC_PER_SEC) << tk->tkr_mono.shift)) { in update_vdso_data()
[all …]
Dtimekeeping.c117 while (tk->tkr_mono.xtime_nsec >= ((u64)NSEC_PER_SEC << tk->tkr_mono.shift)) { in tk_normalize_xtime()
118 tk->tkr_mono.xtime_nsec -= (u64)NSEC_PER_SEC << tk->tkr_mono.shift; in tk_normalize_xtime()
132 ts.tv_nsec = (long)(tk->tkr_mono.xtime_nsec >> tk->tkr_mono.shift); in tk_xtime()
139 tk->tkr_mono.xtime_nsec = (u64)ts->tv_nsec << tk->tkr_mono.shift; in tk_set_xtime()
145 tk->tkr_mono.xtime_nsec += (u64)ts->tv_nsec << tk->tkr_mono.shift; in tk_xtime_add()
202 u64 max_cycles = tk->tkr_mono.clock->max_cycles; in timekeeping_check_update()
203 const char *name = tk->tkr_mono.clock->name; in timekeeping_check_update()
314 old_clock = tk->tkr_mono.clock; in tk_setup_internals()
315 tk->tkr_mono.clock = clock; in tk_setup_internals()
316 tk->tkr_mono.mask = clock->mask; in tk_setup_internals()
[all …]
/Linux-v5.10/arch/ia64/kernel/
Dtime.c431 fsyscall_gtod_data.clk_mask = tk->tkr_mono.mask; in update_vsyscall()
432 fsyscall_gtod_data.clk_mult = tk->tkr_mono.mult; in update_vsyscall()
433 fsyscall_gtod_data.clk_shift = tk->tkr_mono.shift; in update_vsyscall()
434 fsyscall_gtod_data.clk_fsys_mmio = tk->tkr_mono.clock->archdata.fsys_mmio; in update_vsyscall()
435 fsyscall_gtod_data.clk_cycle_last = tk->tkr_mono.cycle_last; in update_vsyscall()
438 fsyscall_gtod_data.wall_time.snsec = tk->tkr_mono.xtime_nsec; in update_vsyscall()
442 fsyscall_gtod_data.monotonic_time.snsec = tk->tkr_mono.xtime_nsec in update_vsyscall()
444 << tk->tkr_mono.shift); in update_vsyscall()
448 (((u64)NSEC_PER_SEC) << tk->tkr_mono.shift)) { in update_vsyscall()
450 ((u64)NSEC_PER_SEC) << tk->tkr_mono.shift; in update_vsyscall()
/Linux-v5.10/arch/nds32/kernel/
Dvdso.c212 vdso_data->cs_mask = tk->tkr_mono.mask; in update_vsyscall()
213 vdso_data->cs_mult = tk->tkr_mono.mult; in update_vsyscall()
214 vdso_data->cs_shift = tk->tkr_mono.shift; in update_vsyscall()
215 vdso_data->cs_cycle_last = tk->tkr_mono.cycle_last; in update_vsyscall()
219 vdso_data->xtime_clock_nsec = tk->tkr_mono.xtime_nsec; in update_vsyscall()
221 vdso_data->xtime_coarse_nsec = tk->tkr_mono.xtime_nsec >> in update_vsyscall()
222 tk->tkr_mono.shift; in update_vsyscall()
/Linux-v5.10/arch/powerpc/kernel/
Dtime.c838 struct clocksource *clock = tk->tkr_mono.clock; in update_vsyscall()
839 u32 mult = tk->tkr_mono.mult; in update_vsyscall()
840 u32 shift = tk->tkr_mono.shift; in update_vsyscall()
841 u64 cycle_last = tk->tkr_mono.cycle_last; in update_vsyscall()
849 xt.tv_nsec = (long)(tk->tkr_mono.xtime_nsec >> tk->tkr_mono.shift); in update_vsyscall()
885 frac_sec = tk->tkr_mono.xtime_nsec << (32 - shift); in update_vsyscall()
/Linux-v5.10/include/linux/
Dtimekeeper_internal.h93 struct tk_read_base tkr_mono; member
/Linux-v5.10/arch/arm/xen/
Denlighten.c104 now.tv_nsec = (long)(tk->tkr_mono.xtime_nsec >> tk->tkr_mono.shift); in xen_pvclock_gtod_notify()
/Linux-v5.10/arch/x86/xen/
Dtime.c102 now.tv_nsec = (long)(tk->tkr_mono.xtime_nsec >> tk->tkr_mono.shift); in xen_pvclock_gtod_notify()
/Linux-v5.10/arch/x86/kvm/
Dx86.c1887 vdata->clock.vclock_mode = tk->tkr_mono.clock->vdso_clock_mode; in update_pvclock_gtod()
1888 vdata->clock.cycle_last = tk->tkr_mono.cycle_last; in update_pvclock_gtod()
1889 vdata->clock.mask = tk->tkr_mono.mask; in update_pvclock_gtod()
1890 vdata->clock.mult = tk->tkr_mono.mult; in update_pvclock_gtod()
1891 vdata->clock.shift = tk->tkr_mono.shift; in update_pvclock_gtod()
1892 vdata->clock.base_cycles = tk->tkr_mono.xtime_nsec; in update_pvclock_gtod()
1893 vdata->clock.offset = tk->tkr_mono.base; in update_pvclock_gtod()