aboutsummaryrefslogtreecommitdiffstats
path: root/arch/s390/kvm/kvm-s390.c
diff options
context:
space:
mode:
authorChristian Borntraeger <borntraeger@de.ibm.com>2009-05-12 11:21:50 -0400
committerAvi Kivity <avi@redhat.com>2009-06-10 04:48:56 -0400
commitb037a4f34ec51b6c8ccb352a04056c04a4bfc269 (patch)
tree9ae7a04c170ecfca9ac2973c69383454c0aa8e60 /arch/s390/kvm/kvm-s390.c
parentca8723023f25c9a70d76cbd6101f8fb4ffec2fa0 (diff)
KVM: s390: optimize float int lock: spin_lock_bh --> spin_lock
The floating interrupt lock is only taken in process context. We can replace all spin_lock_bh with standard spin_lock calls. Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com> Signed-off-by: Christian Ehrhardt <ehrhardt@de.ibm.com> Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/s390/kvm/kvm-s390.c')
-rw-r--r--arch/s390/kvm/kvm-s390.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/s390/kvm/kvm-s390.c b/arch/s390/kvm/kvm-s390.c
index dc3d06811fd8..36c654d2d64a 100644
--- a/arch/s390/kvm/kvm-s390.c
+++ b/arch/s390/kvm/kvm-s390.c
@@ -318,11 +318,11 @@ struct kvm_vcpu *kvm_arch_vcpu_create(struct kvm *kvm,
318 spin_lock_init(&vcpu->arch.local_int.lock); 318 spin_lock_init(&vcpu->arch.local_int.lock);
319 INIT_LIST_HEAD(&vcpu->arch.local_int.list); 319 INIT_LIST_HEAD(&vcpu->arch.local_int.list);
320 vcpu->arch.local_int.float_int = &kvm->arch.float_int; 320 vcpu->arch.local_int.float_int = &kvm->arch.float_int;
321 spin_lock_bh(&kvm->arch.float_int.lock); 321 spin_lock(&kvm->arch.float_int.lock);
322 kvm->arch.float_int.local_int[id] = &vcpu->arch.local_int; 322 kvm->arch.float_int.local_int[id] = &vcpu->arch.local_int;
323 init_waitqueue_head(&vcpu->arch.local_int.wq); 323 init_waitqueue_head(&vcpu->arch.local_int.wq);
324 vcpu->arch.local_int.cpuflags = &vcpu->arch.sie_block->cpuflags; 324 vcpu->arch.local_int.cpuflags = &vcpu->arch.sie_block->cpuflags;
325 spin_unlock_bh(&kvm->arch.float_int.lock); 325 spin_unlock(&kvm->arch.float_int.lock);
326 326
327 rc = kvm_vcpu_init(vcpu, kvm, id); 327 rc = kvm_vcpu_init(vcpu, kvm, id);
328 if (rc) 328 if (rc)