mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH, resend #2] x86: eliminate pointless adjustment attempts in fixup_irqs()
@ 2011-02-17 15:54 Jan Beulich
  2011-02-18 10:40 ` [tip:x86/irq] x86: Eliminate " tip-bot for Jan Beulich
  0 siblings, 1 reply; 2+ messages in thread
From: Jan Beulich @ 2011-02-17 15:54 UTC (permalink / raw)
  To: mingo, tglx, hpa; +Cc: linux-kernel

Not only when an IRQ's affinity equals cpu_online_mask is there no
need to actually try to adjust the affinity, but also when it's a
subset thereof. This particularly avoids adjustment attempts during
system shutdown to any IRQs bound to CPU#0.

Signed-off-by: Jan Beulich <jbeulich@novell.com>

---
 arch/x86/kernel/irq.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- 2.6.38-rc5/arch/x86/kernel/irq.c
+++ 2.6.38-rc5-x86-reduce-fixup-irqs/arch/x86/kernel/irq.c
@@ -310,7 +310,7 @@ void fixup_irqs(void)
 		data = &desc->irq_data;
 		affinity = data->affinity;
 		if (!irq_has_action(irq) ||
-		    cpumask_equal(affinity, cpu_online_mask)) {
+		    cpumask_subset(affinity, cpu_online_mask)) {
 			raw_spin_unlock(&desc->lock);
 			continue;
 		}




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-02-18 10:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-02-17 15:54 [PATCH, resend #2] x86: eliminate pointless adjustment attempts in fixup_irqs() Jan Beulich
2011-02-18 10:40 ` [tip:x86/irq] x86: Eliminate " tip-bot for Jan Beulich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome