diff options
author | Andrey Smetanin <asmetanin@virtuozzo.com> | 2015-12-28 10:27:19 -0500 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2016-01-08 13:04:40 -0500 |
commit | 019b9781ccd667d4160f3636c8735e3baa085555 (patch) | |
tree | 8a200e2b8a1b6d47fb751c456ba58367aeba23c0 /arch/x86/kvm/hyperv.c | |
parent | 1ac1b65ac199205724a8077d37ba7e64a1b7e77c (diff) |
kvm/x86: Drop stimer_stop() function
The function stimer_stop() is called in one place
so remove the function and replace it's call by function
content.
Signed-off-by: Andrey Smetanin <asmetanin@virtuozzo.com>
Reviewed-by: Roman Kagan <rkagan@virtuozzo.com>
CC: Gleb Natapov <gleb@kernel.org>
CC: Paolo Bonzini <pbonzini@redhat.com>
CC: Roman Kagan <rkagan@virtuozzo.com>
CC: Denis V. Lunev <den@openvz.org>
CC: qemu-devel@nongnu.org
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/x86/kvm/hyperv.c')
-rw-r--r-- | arch/x86/kvm/hyperv.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/arch/x86/kvm/hyperv.c b/arch/x86/kvm/hyperv.c index e4ef13a37d4c..6b2ed930bf18 100644 --- a/arch/x86/kvm/hyperv.c +++ b/arch/x86/kvm/hyperv.c | |||
@@ -400,16 +400,11 @@ static void stimer_mark_expired(struct kvm_vcpu_hv_stimer *stimer, | |||
400 | kvm_vcpu_kick(vcpu); | 400 | kvm_vcpu_kick(vcpu); |
401 | } | 401 | } |
402 | 402 | ||
403 | static void stimer_stop(struct kvm_vcpu_hv_stimer *stimer) | ||
404 | { | ||
405 | hrtimer_cancel(&stimer->timer); | ||
406 | } | ||
407 | |||
408 | static void stimer_cleanup(struct kvm_vcpu_hv_stimer *stimer) | 403 | static void stimer_cleanup(struct kvm_vcpu_hv_stimer *stimer) |
409 | { | 404 | { |
410 | struct kvm_vcpu *vcpu = stimer_to_vcpu(stimer); | 405 | struct kvm_vcpu *vcpu = stimer_to_vcpu(stimer); |
411 | 406 | ||
412 | stimer_stop(stimer); | 407 | hrtimer_cancel(&stimer->timer); |
413 | clear_bit(stimer->index, | 408 | clear_bit(stimer->index, |
414 | vcpu_to_hv_vcpu(vcpu)->stimer_pending_bitmap); | 409 | vcpu_to_hv_vcpu(vcpu)->stimer_pending_bitmap); |
415 | stimer->msg_pending = false; | 410 | stimer->msg_pending = false; |