Searched refs:usdiff (Results 1 - 1 of 1) sorted by relevance

/linux-4.4.14/arch/x86/kvm/
H A Dx86.c1415 s64 usdiff; kvm_write_tsc() local
1429 usdiff = data - kvm->arch.last_tsc_write; kvm_write_tsc()
1431 usdiff = (usdiff * 1000) / vcpu->arch.virtual_tsc_khz; kvm_write_tsc()
1445 : "=A"(usdiff), [faulted] "=r" (faulted) kvm_write_tsc()
1446 : "A"(usdiff * 1000), [divisor] "rm"(vcpu->arch.virtual_tsc_khz)); kvm_write_tsc()
1450 usdiff -= elapsed; kvm_write_tsc()
1451 if (usdiff < 0) kvm_write_tsc()
1452 usdiff = -usdiff; kvm_write_tsc()
1456 usdiff = USEC_PER_SEC; kvm_write_tsc()
1458 usdiff = USEC_PER_SEC; /* disable TSC match window below */ kvm_write_tsc()
1470 if (usdiff < USEC_PER_SEC && kvm_write_tsc()

Completed in 89 milliseconds