Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753517Ab0IBMVh (ORCPT ); Thu, 2 Sep 2010 08:21:37 -0400 Received: from vpn.id2.novell.com ([195.33.99.129]:40807 "EHLO vpn.id2.novell.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750799Ab0IBMVg convert rfc822-to-8bit (ORCPT ); Thu, 2 Sep 2010 08:21:36 -0400 Message-Id: <4C7FB2EC0200007800013F1F@vpn.id2.novell.com> X-Mailer: Novell GroupWise Internet Agent 8.0.1 Date: Thu, 02 Sep 2010 13:21:32 +0100 From: "Jan Beulich" To: , , Cc: Subject: Resend: [PATCH] x86: eliminate pointless adjustment attempts in fixup_irqs() Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 8BIT Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- arch/x86/kernel/irq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- linux-2.6.36-rc3/arch/x86/kernel/irq.c +++ 2.6.36-rc3-x86-reduce-irq-fixup/arch/x86/kernel/irq.c @@ -298,7 +298,7 @@ void fixup_irqs(void) affinity = desc->affinity; if (!irq_has_action(irq) || - cpumask_equal(affinity, cpu_online_mask)) { + cpumask_subset(affinity, cpu_online_mask)) { raw_spin_unlock(&desc->lock); continue; }