diff options
author | Keir Fraser <keir@xen.org> | 2011-03-26 08:27:41 +0000 |
---|---|---|
committer | Keir Fraser <keir@xen.org> | 2011-03-26 08:27:41 +0000 |
commit | 1b5efa212fcff6439d91cbc04cda7d57b498d582 (patch) | |
tree | 189c800e94c68107a395aa44f67a5617e1b8967c /xen/common/event_channel.c | |
parent | 138a41150a2ded3f0c96a726ba4d28a30fe59b58 (diff) | |
download | xen-1b5efa212fcff6439d91cbc04cda7d57b498d582.tar.gz xen-1b5efa212fcff6439d91cbc04cda7d57b498d582.tar.bz2 xen-1b5efa212fcff6439d91cbc04cda7d57b498d582.zip |
Remove spin_barrier_irq(). It is pointless.
Add a barrier-appropriate consistency check to spinlock.c, and add
code comments to explain why barrier operations are more relaxed than
lock-acquisition operations.
Signed-off-by: Keir Fraser <keir@xen.org>
Diffstat (limited to 'xen/common/event_channel.c')
-rw-r--r-- | xen/common/event_channel.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xen/common/event_channel.c b/xen/common/event_channel.c index c4308ed8f7..558fbb1256 100644 --- a/xen/common/event_channel.c +++ b/xen/common/event_channel.c @@ -417,7 +417,7 @@ static long __evtchn_close(struct domain *d1, int port1) if ( v->virq_to_evtchn[chn1->u.virq] != port1 ) continue; v->virq_to_evtchn[chn1->u.virq] = 0; - spin_barrier_irq(&v->virq_lock); + spin_barrier(&v->virq_lock); } break; |