Skip to contentSkip to conversation

x86: Skip migrating IRQF_PER_CPU irqs in fixup_irqs()

tip:x86/irq tip-bot for Tian, Kevin 1 participant 1 message May 19, 2011 x86

lore
Share & tools
lore
#0 lore raw
Commit-ID:  b87ba87ca26e226b2277a2d5613ed596f408e96d
Gitweb:     http://git.kernel.org/tip/b87ba87ca26e226b2277a2d5613ed596f408e96d
Author:     Tian, Kevin <[email protected]>
AuthorDate: Fri, 6 May 2011 14:43:36 +0800
Committer:  Thomas Gleixner <[email protected]>
CommitDate: Thu, 19 May 2011 14:51:08 +0200

x86: Skip migrating IRQF_PER_CPU irqs in fixup_irqs()

IRQF_PER_CPU means that the irq cannot be moved away from a given cpu. So it must not be migrated when the cpu goes offline.

[ tglx: massaged changelog ]

---
 arch/x86/kernel/irq.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
arch/x86/kernel/irq.c +1 -1
index 1cb0b9f..544efe2 100644
@@ -249,7 +249,7 @@ void fixup_irqs(void)
 
 		data = irq_desc_get_irq_data(desc);
 		affinity = data->affinity;
-		if (!irq_has_action(irq) ||
+		if (!irq_has_action(irq) || irqd_is_per_cpu(data) ||
 		    cpumask_subset(affinity, cpu_online_mask)) {
 			raw_spin_unlock(&desc->lock);
 			continue;