xen/events: use locked set|clear_bit() for cpu_evtchn_mask
authorJeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Tue, 16 Nov 2010 22:56:47 +0000 (14:56 -0800)
committerJeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Tue, 16 Nov 2010 22:58:50 +0000 (14:58 -0800)
The per-cpu event channel masks can be updated unlocked from multiple
CPUs, so use the locked variant.

Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
drivers/xen/events.c

index d770b8c8885b4eed27b957a3b87bef9cf19da868..d6d4f76ed500c20e6c07f09877c6a0c6853bff60 100644 (file)
@@ -278,8 +278,8 @@ static void bind_evtchn_to_cpu(unsigned int chn, unsigned int cpu)
        cpumask_copy(irq_to_desc(irq)->affinity, cpumask_of(cpu));
 #endif
 
-       __clear_bit(chn, cpu_evtchn_mask(cpu_from_irq(irq)));
-       __set_bit(chn, cpu_evtchn_mask(cpu));
+       clear_bit(chn, cpu_evtchn_mask(cpu_from_irq(irq)));
+       set_bit(chn, cpu_evtchn_mask(cpu));
 
        irq_info[irq].cpu = cpu;
 }