Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751725AbXB1Hkf (ORCPT ); Wed, 28 Feb 2007 02:40:35 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751895AbXB1Hkf (ORCPT ); Wed, 28 Feb 2007 02:40:35 -0500 Received: from serv1.oss.ntt.co.jp ([222.151.198.98]:44437 "EHLO serv1.oss.ntt.co.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751725AbXB1Hke (ORCPT ); Wed, 28 Feb 2007 02:40:34 -0500 Subject: [PATCH] affinity is not defined in non-smp kernels - x86_64 From: Fernando Luis =?ISO-8859-1?Q?V=E1zquez?= Cao To: Linux Kernel Mailing List In-Reply-To: References: Content-Type: text/plain Organization: NTT Open Source Software Center Date: Wed, 28 Feb 2007 16:41:01 +0900 Message-Id: <1172648461.30062.0.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: 816 Lines: 24 Initialize affinity only when building SMP kernels. Signed-off-by: Fernando Luis Vazquez Cao --- --- linux-2.6.21-rc2-dtt/arch/x86_64/kernel/io_apic.c 2007-03-06 15:20:14.000000000 +0900 +++ linux-2.6.21-rc2-kdump/arch/x86_64/kernel/io_apic.c 2007-03-06 15:48:52.000000000 +0900 @@ -832,7 +832,9 @@ static void setup_IO_APIC_irq(int apic, ioapic_write_entry(apic, pin, entry); spin_lock_irqsave(&ioapic_lock, flags); +#ifdef CONFIG_SMP irq_desc[irq].affinity = TARGET_CPUS; +#endif spin_unlock_irqrestore(&ioapic_lock, flags); } - 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/