Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 297148
b: refs/heads/master
c: 24a1304
h: refs/heads/master
v: v3
  • Loading branch information
Jens Freimann authored and Avi Kivity committed Mar 8, 2012
1 parent 3a3a458 commit 02bc077
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 151104a7b3a82f9c56d636595ae58084049d2559
refs/heads/master: 24a13044a84be51a6a4885a72ac9d5f4ed0742d0
3 changes: 3 additions & 0 deletions trunk/arch/s390/kvm/sigp.c
Original file line number Diff line number Diff line change
Expand Up @@ -160,12 +160,15 @@ static int __inject_sigp_stop(struct kvm_s390_local_interrupt *li, int action)
inti->type = KVM_S390_SIGP_STOP;

spin_lock_bh(&li->lock);
if ((atomic_read(li->cpuflags) & CPUSTAT_STOPPED))
goto out;
list_add_tail(&inti->list, &li->list);
atomic_set(&li->active, 1);
atomic_set_mask(CPUSTAT_STOP_INT, li->cpuflags);
li->action_bits |= action;
if (waitqueue_active(&li->wq))
wake_up_interruptible(&li->wq);
out:
spin_unlock_bh(&li->lock);

return 0; /* order accepted */
Expand Down

0 comments on commit 02bc077

Please sign in to comment.