From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.238]) by ozlabs.org (Postfix) with ESMTP id 5A6EFDDDE7 for ; Sun, 9 Nov 2008 09:12:31 +1100 (EST) Received: by rv-out-0506.google.com with SMTP id f6so1682661rvb.9 for ; Sat, 08 Nov 2008 14:12:28 -0800 (PST) Message-ID: <86802c440811081412u6d54beaam143801ce83225f40@mail.gmail.com> Date: Sat, 8 Nov 2008 14:12:28 -0800 From: "Yinghai Lu" Sender: yhlu.kernel@gmail.com To: "Kumar Gala" Subject: Re: [PATCH 1/1] irq: Maintain user set affinity In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 References: Cc: Andrew Morton , linuxppc-dev@ozlabs.org, Linus Torvalds , tglx@linutronix.de, linux-kernel@vger.kernel.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Tue, Nov 4, 2008 at 8:31 AM, Kumar Gala wrote: > From 819ad3ed4660f4238e053728a8b5aa93d22b13d7 Mon Sep 17 00:00:00 2001 > From: Kumar Gala > Date: Tue, 4 Nov 2008 10:13:53 -0600 > Subject: [PATCH 1/1] irq: Maintain user set affinity > > This addresses a regression in that if a user specified an affinity > for an interrupt that affinity information would get reset between > a request_irq(), free_irq() and request_irq() for the same irq. > > On example of this is bringing up an ethernet interface, taking > it down and bringing it back up again. > > Instead of always using the irq_default_affinity we use the > previous setting of the IRQs affinity with the assumption that > at boot the IRQs affinity will be set to irq_default_affinity. why ?, the default_affinity is expected behavior... for example: when MSI is used, second driver could get same irq if first driver is unloaded. YH