From 1b5efa212fcff6439d91cbc04cda7d57b498d582 Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Sat, 26 Mar 2011 08:27:41 +0000 Subject: 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 --- xen/common/event_channel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xen/common/event_channel.c') 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; -- cgit v1.2.3