Skip to content

Commit 019b978

Browse files
Andrey Smetaninbonzini
authored andcommitted
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>
1 parent 1ac1b65 commit 019b978

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

arch/x86/kvm/hyperv.c

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -400,16 +400,11 @@ static void stimer_mark_expired(struct kvm_vcpu_hv_stimer *stimer,
400400
kvm_vcpu_kick(vcpu);
401401
}
402402

403-
static void stimer_stop(struct kvm_vcpu_hv_stimer *stimer)
404-
{
405-
hrtimer_cancel(&stimer->timer);
406-
}
407-
408403
static void stimer_cleanup(struct kvm_vcpu_hv_stimer *stimer)
409404
{
410405
struct kvm_vcpu *vcpu = stimer_to_vcpu(stimer);
411406

412-
stimer_stop(stimer);
407+
hrtimer_cancel(&stimer->timer);
413408
clear_bit(stimer->index,
414409
vcpu_to_hv_vcpu(vcpu)->stimer_pending_bitmap);
415410
stimer->msg_pending = false;

0 commit comments

Comments
 (0)