Lines Matching refs:hv_clock
1109 static bool compute_tsc_page_parameters(struct pvclock_vcpu_time_info *hv_clock,
1114 if (!(hv_clock->flags & PVCLOCK_TSC_STABLE_BIT))
1123 max_mul = 100ull << (32 - hv_clock->tsc_shift);
1124 if (hv_clock->tsc_to_system_mul >= max_mul)
1132 mul_u64_u32_div(1ULL << (32 + hv_clock->tsc_shift),
1133 hv_clock->tsc_to_system_mul,
1136 tsc_ref->tsc_offset = hv_clock->system_time;
1139 mul_u64_u64_shr(hv_clock->tsc_timestamp, tsc_ref->tsc_scale, 64);
1159 struct pvclock_vcpu_time_info *hv_clock)
1204 if (!compute_tsc_page_parameters(hv_clock, &hv->tsc_ref))