[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v1 1/6] kvm/x86: Drop stimer_stop() function
From: |
Andrey Smetanin |
Subject: |
[Qemu-devel] [PATCH v1 1/6] kvm/x86: Drop stimer_stop() function |
Date: |
Wed, 23 Dec 2015 14:28:36 +0300 |
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 <address@hidden>
Reviewed-by: Roman Kagan <address@hidden>
CC: Gleb Natapov <address@hidden>
CC: Paolo Bonzini <address@hidden>
CC: Roman Kagan <address@hidden>
CC: Denis V. Lunev <address@hidden>
CC: address@hidden
---
arch/x86/kvm/hyperv.c | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/arch/x86/kvm/hyperv.c b/arch/x86/kvm/hyperv.c
index f34f666..ec3a900 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,
kvm_vcpu_kick(vcpu);
}
-static void stimer_stop(struct kvm_vcpu_hv_stimer *stimer)
-{
- hrtimer_cancel(&stimer->timer);
-}
-
static void stimer_cleanup(struct kvm_vcpu_hv_stimer *stimer)
{
struct kvm_vcpu *vcpu = stimer_to_vcpu(stimer);
- stimer_stop(stimer);
+ hrtimer_cancel(&stimer->timer);
clear_bit(stimer->index,
vcpu_to_hv_vcpu(vcpu)->stimer_pending_bitmap);
stimer->msg_pending = false;
--
2.4.3
- [Qemu-devel] [PATCH v1 0/6] KVM: Hyper-V SynIC timers migration fixes, Andrey Smetanin, 2015/12/23
- [Qemu-devel] [PATCH v1 1/6] kvm/x86: Drop stimer_stop() function,
Andrey Smetanin <=
- [Qemu-devel] [PATCH v1 3/6] kvm/x86: Reorg stimer_expiration() to better control timer restart, Andrey Smetanin, 2015/12/23
- [Qemu-devel] [PATCH v1 4/6] kvm/x86: Hyper-V fix SynIC timer disabling condition, Andrey Smetanin, 2015/12/23
- [Qemu-devel] [PATCH v1 5/6] kvm/x86: Skip SynIC vector check for QEMU side, Andrey Smetanin, 2015/12/23
- [Qemu-devel] [PATCH v1 6/6] kvm/x86: Update SynIC timers on guest entry only, Andrey Smetanin, 2015/12/23
- [Qemu-devel] [PATCH v1 2/6] kvm/x86: Hyper-V unify stimer_start() and stimer_restart(), Andrey Smetanin, 2015/12/23