Searched refs:gtod (Results 1 – 7 of 7) sorted by relevance
/kernel/linux/linux-5.10/tools/testing/selftests/vDSO/ |
D | vdso_test_gettimeofday.c | 47 gtod_t gtod = (gtod_t)vdso_sym(version, name); in main() local 49 if (!gtod) { in main() 55 long ret = gtod(&tv, 0); in main()
|
D | vdso_standalone_test_x86.c | 89 gtod_t gtod = (gtod_t)vdso_sym("LINUX_2.6", "__vdso_gettimeofday"); in c_main() local 91 if (!gtod) in c_main() 95 long ret = gtod(&tv, 0); in c_main()
|
/kernel/linux/linux-5.10/kernel/sched/ |
D | clock.c | 267 u64 now, clock, old_clock, min_clock, max_clock, gtod; in sched_clock_local() local 284 gtod = scd->tick_gtod + __gtod_offset; in sched_clock_local() 285 clock = gtod + delta; in sched_clock_local() 286 min_clock = wrap_max(gtod, old_clock); in sched_clock_local() 287 max_clock = wrap_max(old_clock, gtod + TICK_NSEC); in sched_clock_local()
|
/kernel/linux/linux-5.10/arch/s390/kvm/ |
D | kvm-s390.c | 1095 static void __kvm_s390_set_tod_clock(struct kvm *kvm, const struct kvm_s390_vm_tod_clock *gtod); 1099 struct kvm_s390_vm_tod_clock gtod; in kvm_s390_set_tod_ext() local 1101 if (copy_from_user(>od, (void __user *)attr->addr, sizeof(gtod))) in kvm_s390_set_tod_ext() 1104 if (!test_kvm_facility(kvm, 139) && gtod.epoch_idx) in kvm_s390_set_tod_ext() 1106 __kvm_s390_set_tod_clock(kvm, >od); in kvm_s390_set_tod_ext() 1109 gtod.epoch_idx, gtod.tod); in kvm_s390_set_tod_ext() 1131 struct kvm_s390_vm_tod_clock gtod = { 0 }; in kvm_s390_set_tod_low() local 1133 if (copy_from_user(>od.tod, (void __user *)attr->addr, in kvm_s390_set_tod_low() 1134 sizeof(gtod.tod))) in kvm_s390_set_tod_low() 1137 __kvm_s390_set_tod_clock(kvm, >od); in kvm_s390_set_tod_low() [all …]
|
D | priv.c | 87 struct kvm_s390_vm_tod_clock gtod = { 0 }; in handle_set_clock() local 100 rc = read_guest(vcpu, op2, ar, >od.tod, sizeof(gtod.tod)); in handle_set_clock() 104 VCPU_EVENT(vcpu, 3, "SCK: setting guest TOD to 0x%llx", gtod.tod); in handle_set_clock() 115 if (!kvm_s390_try_set_tod_clock(vcpu->kvm, >od)) { in handle_set_clock()
|
D | kvm-s390.h | 329 int kvm_s390_try_set_tod_clock(struct kvm *kvm, const struct kvm_s390_vm_tod_clock *gtod);
|
/kernel/linux/linux-5.10/arch/x86/kvm/ |
D | x86.c | 2197 struct pvclock_gtod_data *gtod = &pvclock_gtod_data; in kvm_track_tsc_matching() local 2211 (gtod_is_based_on_tsc(gtod->clock.vclock_mode) && vcpus_matched)) in kvm_track_tsc_matching() 2216 ka->use_master_clock, gtod->clock.vclock_mode); in kvm_track_tsc_matching() 2455 struct pvclock_gtod_data *gtod = &pvclock_gtod_data; in do_monotonic_raw() local 2461 seq = read_seqcount_begin(>od->seq); in do_monotonic_raw() 2462 ns = gtod->raw_clock.base_cycles; in do_monotonic_raw() 2463 ns += vgettsc(>od->raw_clock, tsc_timestamp, &mode); in do_monotonic_raw() 2464 ns >>= gtod->raw_clock.shift; in do_monotonic_raw() 2465 ns += ktime_to_ns(ktime_add(gtod->raw_clock.offset, gtod->offs_boot)); in do_monotonic_raw() 2466 } while (unlikely(read_seqcount_retry(>od->seq, seq))); in do_monotonic_raw() [all …]
|