Home
last modified time | relevance | path

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

/arch/x86/kernel/
Dvsyscall_gtod.c27 void update_vsyscall(struct timekeeper *tk) in update_vsyscall() argument
34 vdata->vclock_mode = tk->tkr_mono.clock->archdata.vclock_mode; in update_vsyscall()
35 vdata->cycle_last = tk->tkr_mono.cycle_last; in update_vsyscall()
36 vdata->mask = tk->tkr_mono.mask; in update_vsyscall()
37 vdata->mult = tk->tkr_mono.mult; in update_vsyscall()
38 vdata->shift = tk->tkr_mono.shift; in update_vsyscall()
40 vdata->wall_time_sec = tk->xtime_sec; in update_vsyscall()
41 vdata->wall_time_snsec = tk->tkr_mono.xtime_nsec; in update_vsyscall()
43 vdata->monotonic_time_sec = tk->xtime_sec in update_vsyscall()
44 + tk->wall_to_monotonic.tv_sec; in update_vsyscall()
[all …]
/arch/tile/kernel/
Dtime.c258 void update_vsyscall(struct timekeeper *tk) in update_vsyscall() argument
260 if (tk->tkr_mono.clock != &cycle_counter_cs) in update_vsyscall()
265 vdso_data->cycle_last = tk->tkr_mono.cycle_last; in update_vsyscall()
266 vdso_data->mask = tk->tkr_mono.mask; in update_vsyscall()
267 vdso_data->mult = tk->tkr_mono.mult; in update_vsyscall()
268 vdso_data->shift = tk->tkr_mono.shift; in update_vsyscall()
270 vdso_data->wall_time_sec = tk->xtime_sec; in update_vsyscall()
271 vdso_data->wall_time_snsec = tk->tkr_mono.xtime_nsec; in update_vsyscall()
273 vdso_data->monotonic_time_sec = tk->xtime_sec in update_vsyscall()
274 + tk->wall_to_monotonic.tv_sec; in update_vsyscall()
[all …]
/arch/mips/kernel/
Dvdso.c69 void update_vsyscall(struct timekeeper *tk) in update_vsyscall() argument
73 vdso_data.xtime_sec = tk->xtime_sec; in update_vsyscall()
74 vdso_data.xtime_nsec = tk->tkr_mono.xtime_nsec; in update_vsyscall()
75 vdso_data.wall_to_mono_sec = tk->wall_to_monotonic.tv_sec; in update_vsyscall()
76 vdso_data.wall_to_mono_nsec = tk->wall_to_monotonic.tv_nsec; in update_vsyscall()
77 vdso_data.cs_shift = tk->tkr_mono.shift; in update_vsyscall()
79 vdso_data.clock_mode = tk->tkr_mono.clock->archdata.vdso_clock_mode; in update_vsyscall()
81 vdso_data.cs_mult = tk->tkr_mono.mult; in update_vsyscall()
82 vdso_data.cs_cycle_last = tk->tkr_mono.cycle_last; in update_vsyscall()
83 vdso_data.cs_mask = tk->tkr_mono.mask; in update_vsyscall()
/arch/arm/kernel/
Dvdso.c269 static bool tk_is_cntvct(const struct timekeeper *tk) in tk_is_cntvct() argument
274 if (strcmp(tk->tkr_mono.clock->name, "arch_sys_counter") != 0) in tk_is_cntvct()
298 void update_vsyscall(struct timekeeper *tk) in update_vsyscall() argument
300 struct timespec64 *wtm = &tk->wall_to_monotonic; in update_vsyscall()
311 vdso_data->tk_is_cntvct = tk_is_cntvct(tk); in update_vsyscall()
312 vdso_data->xtime_coarse_sec = tk->xtime_sec; in update_vsyscall()
313 vdso_data->xtime_coarse_nsec = (u32)(tk->tkr_mono.xtime_nsec >> in update_vsyscall()
314 tk->tkr_mono.shift); in update_vsyscall()
319 vdso_data->cs_cycle_last = tk->tkr_mono.cycle_last; in update_vsyscall()
320 vdso_data->xtime_clock_sec = tk->xtime_sec; in update_vsyscall()
[all …]
/arch/arm64/kernel/
Dvdso.c203 void update_vsyscall(struct timekeeper *tk) in update_vsyscall() argument
206 u32 use_syscall = strcmp(tk->tkr_mono.clock->name, "arch_sys_counter"); in update_vsyscall()
215 vdso_data->wtm_clock_sec = tk->wall_to_monotonic.tv_sec; in update_vsyscall()
216 vdso_data->wtm_clock_nsec = tk->wall_to_monotonic.tv_nsec; in update_vsyscall()
220 vdso_data->cs_cycle_last = tk->tkr_mono.cycle_last; in update_vsyscall()
221 vdso_data->raw_time_sec = tk->raw_sec; in update_vsyscall()
222 vdso_data->raw_time_nsec = tk->tkr_raw.xtime_nsec; in update_vsyscall()
223 vdso_data->xtime_clock_sec = tk->xtime_sec; in update_vsyscall()
224 vdso_data->xtime_clock_nsec = tk->tkr_mono.xtime_nsec; in update_vsyscall()
226 vdso_data->cs_mono_mult = tk->tkr_mono.mult; in update_vsyscall()
[all …]
/arch/s390/kernel/
Dtime.c213 void update_vsyscall(struct timekeeper *tk) in update_vsyscall() argument
217 if (tk->tkr_mono.clock != &clocksource_tod) in update_vsyscall()
223 vdso_data->xtime_tod_stamp = tk->tkr_mono.cycle_last; in update_vsyscall()
224 vdso_data->xtime_clock_sec = tk->xtime_sec; in update_vsyscall()
225 vdso_data->xtime_clock_nsec = tk->tkr_mono.xtime_nsec; in update_vsyscall()
227 tk->xtime_sec + tk->wall_to_monotonic.tv_sec; in update_vsyscall()
228 vdso_data->wtom_clock_nsec = tk->tkr_mono.xtime_nsec + in update_vsyscall()
229 + ((u64) tk->wall_to_monotonic.tv_nsec << tk->tkr_mono.shift); in update_vsyscall()
230 nsecps = (u64) NSEC_PER_SEC << tk->tkr_mono.shift; in update_vsyscall()
236 vdso_data->xtime_coarse_sec = tk->xtime_sec; in update_vsyscall()
[all …]
/arch/x86/kvm/
Dx86.c1059 static void update_pvclock_gtod(struct timekeeper *tk) in update_pvclock_gtod() argument
1064 boot_ns = ktime_to_ns(ktime_add(tk->tkr_mono.base, tk->offs_boot)); in update_pvclock_gtod()
1069 vdata->clock.vclock_mode = tk->tkr_mono.clock->archdata.vclock_mode; in update_pvclock_gtod()
1070 vdata->clock.cycle_last = tk->tkr_mono.cycle_last; in update_pvclock_gtod()
1071 vdata->clock.mask = tk->tkr_mono.mask; in update_pvclock_gtod()
1072 vdata->clock.mult = tk->tkr_mono.mult; in update_pvclock_gtod()
1073 vdata->clock.shift = tk->tkr_mono.shift; in update_pvclock_gtod()
1076 vdata->nsec_base = tk->tkr_mono.xtime_nsec; in update_pvclock_gtod()
5730 struct timekeeper *tk = priv; in pvclock_gtod_notify() local
5732 update_pvclock_gtod(tk); in pvclock_gtod_notify()