From 828dfa9ef2bb3dae3ee29cccbe3d4d75bf56b8a6 Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Wed, 22 Oct 2008 15:06:01 +0100 Subject: Define spin_barrier_irq() for IRQ-safe spinlocks, and use it for virq_lock. 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 8e3e0d1f64..3993df4bc5 100644 --- a/xen/common/event_channel.c +++ b/xen/common/event_channel.c @@ -386,7 +386,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(&v->virq_lock); + spin_barrier_irq(&v->virq_lock); } break; -- cgit v1.2.3