diff options
author | Mark Brown <broonie@kernel.org> | 2014-11-14 17:56:04 +0000 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2014-11-14 17:56:04 +0000 |
commit | 8eb52971d4749c0192358e1942ca83d8dc7e686b (patch) | |
tree | 418db997d718e14be2d5d9436d50985a4616156d /arch/x86/kvm/i8254.c | |
parent | d91fd220833b8a6250ff6abf86c7e66a75655ee7 (diff) | |
parent | be70188832b22a8f1a49d0e3a3eb2209f9cfdc8a (diff) |
Merge tag 'v3.10.60' into linux-linaro-lsk
This is the 3.10.60 stable release
Diffstat (limited to 'arch/x86/kvm/i8254.c')
-rw-r--r-- | arch/x86/kvm/i8254.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/x86/kvm/i8254.c b/arch/x86/kvm/i8254.c index 518d86471b76..298781d4cfb4 100644 --- a/arch/x86/kvm/i8254.c +++ b/arch/x86/kvm/i8254.c @@ -262,8 +262,10 @@ void __kvm_migrate_pit_timer(struct kvm_vcpu *vcpu) return; timer = &pit->pit_state.timer; + mutex_lock(&pit->pit_state.lock); if (hrtimer_cancel(timer)) hrtimer_start_expires(timer, HRTIMER_MODE_ABS); + mutex_unlock(&pit->pit_state.lock); } static void destroy_pit_timer(struct kvm_pit *pit) |