4 void move_masked_irq(int irq)
6 struct irq_desc *desc = irq_to_desc(irq);
9 if (likely(!(desc->status & IRQ_MOVE_PENDING)))
13 * Paranoia: cpu-local interrupts shouldn't be calling in here anyway.
15 if (CHECK_IRQ_PER_CPU(desc->status)) {
20 desc->status &= ~IRQ_MOVE_PENDING;
22 if (unlikely(cpus_empty(desc->pending_mask)))
25 if (!desc->chip->set_affinity)
28 assert_spin_locked(&desc->lock);
30 cpus_and(tmp, desc->pending_mask, cpu_online_map);
33 * If there was a valid mask to work with, please
34 * do the disable, re-program, enable sequence.
35 * This is *not* particularly important for level triggered
36 * but in a edge trigger case, we might be setting rte
37 * when an active trigger is comming in. This could
38 * cause some ioapics to mal-function.
39 * Being paranoid i guess!
41 * For correct operation this depends on the caller
44 if (likely(!cpus_empty(tmp))) {
45 desc->chip->set_affinity(irq,tmp);
47 cpus_clear(desc->pending_mask);
50 void move_native_irq(int irq)
52 struct irq_desc *desc = irq_to_desc(irq);
54 if (likely(!(desc->status & IRQ_MOVE_PENDING)))
57 if (unlikely(desc->status & IRQ_DISABLED))
60 desc->chip->mask(irq);
62 desc->chip->unmask(irq);