From: Keir Fraser Subject: Re: [PATCH 3/5] setup_irq/request_irq/free_irq fixups Date: Fri, 06 Feb 2009 11:34:46 +0000 Message-ID: References: <18828.7684.439394.971077@gargle.gargle.HOWL> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <18828.7684.439394.971077@gargle.gargle.HOWL> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Espen Skoglund Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On 06/02/2009 11:24, "Espen Skoglund" wrote: >>> Make setup_irq/request_irq/free_irq take vector param instead of >>> irq param > >> Do you really think that's an improvement? > > Yes. Some interrupts, e.g., for handling IOMMU faults, do not need to > be associated with a pirq. They just need to have a vector allocated > to them. The way this used to work, the caller would have to invent a > IRQ to go with the vector (typically irq := vector) befor calling the > function. My reading of the patch was that you simply pushed irq_to_vector() out into every caller. I therefore just took the ->shutdown() fix for free_irq() and dropped the rest. I checked in the rest of your patches. -- Keir