mirror of
https://github.com/S3NEO/android_kernel_samsung_msm8226.git
synced 2024-11-07 03:47:13 +00:00
KVM: Don't wrap schedule() with vcpu_put()/vcpu_load()
Preemption notifiers will do that for us automatically. Signed-off-by: Avi Kivity <avi@redhat.com>
This commit is contained in:
parent
58988b07cf
commit
45ec431c52
1 changed files with 0 additions and 2 deletions
|
@ -1689,9 +1689,7 @@ void kvm_vcpu_block(struct kvm_vcpu *vcpu)
|
||||||
if (signal_pending(current))
|
if (signal_pending(current))
|
||||||
break;
|
break;
|
||||||
|
|
||||||
vcpu_put(vcpu);
|
|
||||||
schedule();
|
schedule();
|
||||||
vcpu_load(vcpu);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
finish_wait(&vcpu->wq, &wait);
|
finish_wait(&vcpu->wq, &wait);
|
||||||
|
|
Loading…
Reference in a new issue