mirror of
https://gitee.com/openharmony/kernel_linux
synced 2025-02-10 20:25:51 +00:00
[PATCH] KVM: Remove extranous put_cpu() from vcpu_put()
The arch splitting patchset left an extra put_cpu() in core code, where it can cause trouble for CONFIG_PREEMPT kernels. Reported-by: Huihong Luo <huisinro@yahoo.com> Signed-off-by: Avi Kivity <avi@qumranet.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
7725f0badd
commit
0770b19b94
@ -205,7 +205,6 @@ static struct kvm_vcpu *vcpu_load(struct kvm *kvm, int vcpu_slot)
|
||||
static void vcpu_put(struct kvm_vcpu *vcpu)
|
||||
{
|
||||
kvm_arch_ops->vcpu_put(vcpu);
|
||||
put_cpu();
|
||||
mutex_unlock(&vcpu->mutex);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user