Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751483AbXB1Hj1 (ORCPT ); Wed, 28 Feb 2007 02:39:27 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751725AbXB1Hj1 (ORCPT ); Wed, 28 Feb 2007 02:39:27 -0500 Received: from serv1.oss.ntt.co.jp ([222.151.198.98]:44430 "EHLO serv1.oss.ntt.co.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751483AbXB1HjZ (ORCPT ); Wed, 28 Feb 2007 02:39:25 -0500 Subject: [PATCH] affinity is not defined in non-smp kernels - i386 (v2) From: Fernando Luis =?ISO-8859-1?Q?V=E1zquez?= Cao To: Linus Torvalds Cc: Linux Kernel Mailing List , ebiederm@xmission.com, ak@suse.de, akpm@linux-foundation.org In-Reply-To: <1172646816.29709.15.camel@sebastian.intellilink.co.jp> References: <1172646816.29709.15.camel@sebastian.intellilink.co.jp> Content-Type: text/plain Organization: =?UTF-8?Q?NTT=E3=82=AA=E3=83=BC=E3=83=97=E3=83=B3=E3=82=BD=E3=83=BC?= =?UTF-8?Q?=E3=82=B9=E3=82=BD=E3=83=95=E3=83=88=E3=82=A6=E3=82=A7?= =?UTF-8?Q?=E3=82=A2=E3=82=BB=E3=83=B3=E3=82=BF?= Date: Wed, 28 Feb 2007 16:16:46 +0900 Message-Id: <1172647006.29709.19.camel@sebastian.intellilink.co.jp> Mime-Version: 1.0 X-Mailer: Evolution 2.6.3 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1105 Lines: 34 Initialize affinity only when building SMP kernels. Signed-off-by: Fernando Luis Vazquez Cao --- --- linux-2.6.21-rc2-dtt/arch/i386/kernel/io_apic.c 2007-03-06 15:20:14.000000000 +0900 +++ linux-2.6.21-rc2-kdump/arch/i386/kernel/io_apic.c 2007-03-06 15:51:45.000000000 +0900 @@ -1354,7 +1354,9 @@ static void __init setup_IO_APIC_irqs(vo } spin_lock_irqsave(&ioapic_lock, flags); __ioapic_write_entry(apic, pin, entry); +#ifdef CONFIG_SMP irq_desc[irq].affinity = TARGET_CPUS; +#endif spin_unlock_irqrestore(&ioapic_lock, flags); } } @@ -2875,7 +2877,9 @@ int io_apic_set_pci_routing (int ioapic, spin_lock_irqsave(&ioapic_lock, flags); __ioapic_write_entry(ioapic, pin, entry); +#ifdef CONFIG_SMP irq_desc[irq].affinity = TARGET_CPUS; +#endif spin_unlock_irqrestore(&ioapic_lock, flags); return 0; - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/