Lines 262-269
void __kvm_migrate_pit_timer(struct kvm_vcpu *vcpu)
Link Here
|
262 |
return; |
262 |
return; |
263 |
|
263 |
|
264 |
timer = &pit->pit_state.timer; |
264 |
timer = &pit->pit_state.timer; |
|
|
265 |
mutex_lock(&pit->pit_state.lock); |
265 |
if (hrtimer_cancel(timer)) |
266 |
if (hrtimer_cancel(timer)) |
266 |
hrtimer_start_expires(timer, HRTIMER_MODE_ABS); |
267 |
hrtimer_start_expires(timer, HRTIMER_MODE_ABS); |
|
|
268 |
mutex_unlock(&pit->pit_state.lock); |
267 |
} |
269 |
} |
268 |
|
270 |
|
269 |
static void destroy_pit_timer(struct kvm_pit *pit) |
271 |
static void destroy_pit_timer(struct kvm_pit *pit) |
270 |
- |
|
|