Home
last modified time | relevance | path

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

/linux-6.15/tools/testing/selftests/vDSO/
H A Dvdso_test_gettimeofday.c39 gtod_t gtod = (gtod_t)vdso_sym(version, name[0]); in main() local
41 if (!gtod) { in main()
47 long ret = VDSO_CALL(gtod, 2, &tv, 0); in main()
H A Dvdso_standalone_test_x86.c39 gtod_t gtod = (gtod_t)vdso_sym(version, name[0]); in main() local
41 if (!gtod) { in main()
47 long ret = VDSO_CALL(gtod, 2, &tv, 0); in main()
/linux-6.15/kernel/sched/
H A Dclock.c265 u64 now, clock, old_clock, min_clock, max_clock, gtod; in sched_clock_local() local
282 gtod = scd->tick_gtod + __gtod_offset; in sched_clock_local()
283 clock = gtod + delta; in sched_clock_local()
284 min_clock = wrap_max(gtod, old_clock); in sched_clock_local()
285 max_clock = wrap_max(old_clock, gtod + TICK_NSEC); in sched_clock_local()
/linux-6.15/arch/s390/kvm/
H A Dkvm-s390.c1265 if (copy_from_user(&gtod, (void __user *)attr->addr, sizeof(gtod))) in kvm_s390_set_tod_ext()
1273 gtod.epoch_idx, gtod.tod); in kvm_s390_set_tod_ext()
1298 sizeof(gtod.tod))) in kvm_s390_set_tod_low()
1353 gtod->epoch_idx = 0; in kvm_s390_get_tod_clock()
1356 if (gtod->tod < clk.tod) in kvm_s390_get_tod_clock()
1357 gtod->epoch_idx += 1; in kvm_s390_get_tod_clock()
1367 memset(&gtod, 0, sizeof(gtod)); in kvm_s390_get_tod_ext()
1369 if (copy_to_user((void __user *)attr->addr, &gtod, sizeof(gtod))) in kvm_s390_get_tod_ext()
1373 gtod.epoch_idx, gtod.tod); in kvm_s390_get_tod_ext()
1391 u64 gtod; in kvm_s390_get_tod_low() local
[all …]
H A Dpriv.c85 struct kvm_s390_vm_tod_clock gtod = { 0 }; in handle_set_clock() local
98 rc = read_guest(vcpu, op2, ar, &gtod.tod, sizeof(gtod.tod)); in handle_set_clock()
102 VCPU_EVENT(vcpu, 3, "SCK: setting guest TOD to 0x%llx", gtod.tod); in handle_set_clock()
113 if (!kvm_s390_try_set_tod_clock(vcpu->kvm, &gtod)) { in handle_set_clock()
H A Dkvm-s390.h407 int kvm_s390_try_set_tod_clock(struct kvm *kvm, const struct kvm_s390_vm_tod_clock *gtod);
/linux-6.15/arch/x86/kvm/
H A Dx86.c2844 seq = read_seqcount_begin(&gtod->seq); in do_kvmclock_base()
2845 ns = gtod->raw_clock.base_cycles; in do_kvmclock_base()
2847 ns >>= gtod->raw_clock.shift; in do_kvmclock_base()
2848 ns += ktime_to_ns(ktime_add(gtod->raw_clock.offset, gtod->offs_boot)); in do_kvmclock_base()
2867 seq = read_seqcount_begin(&gtod->seq); in do_monotonic()
2868 ns = gtod->clock.base_cycles; in do_monotonic()
2870 ns >>= gtod->clock.shift; in do_monotonic()
2871 ns += ktime_to_ns(gtod->clock.offset); in do_monotonic()
2887 ts->tv_sec = gtod->wall_time_sec; in do_realtime()
2888 ns = gtod->clock.base_cycles; in do_realtime()
[all …]