diff options
Diffstat (limited to 'arch/x86/kvm/hyperv.c')
-rw-r--r-- | arch/x86/kvm/hyperv.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/x86/kvm/hyperv.c b/arch/x86/kvm/hyperv.c index 1572c35b4f1a..2ecd7dab4631 100644 --- a/arch/x86/kvm/hyperv.c +++ b/arch/x86/kvm/hyperv.c | |||
@@ -964,10 +964,11 @@ static int kvm_hv_set_msr_pw(struct kvm_vcpu *vcpu, u32 msr, u64 data, | |||
964 | /* Calculate cpu time spent by current task in 100ns units */ | 964 | /* Calculate cpu time spent by current task in 100ns units */ |
965 | static u64 current_task_runtime_100ns(void) | 965 | static u64 current_task_runtime_100ns(void) |
966 | { | 966 | { |
967 | cputime_t utime, stime; | 967 | u64 utime, stime; |
968 | 968 | ||
969 | task_cputime_adjusted(current, &utime, &stime); | 969 | task_cputime_adjusted(current, &utime, &stime); |
970 | return div_u64(cputime_to_nsecs(utime + stime), 100); | 970 | |
971 | return div_u64(utime + stime, 100); | ||
971 | } | 972 | } |
972 | 973 | ||
973 | static int kvm_hv_set_msr(struct kvm_vcpu *vcpu, u32 msr, u64 data, bool host) | 974 | static int kvm_hv_set_msr(struct kvm_vcpu *vcpu, u32 msr, u64 data, bool host) |