Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753318AbbETKQX (ORCPT ); Wed, 20 May 2015 06:16:23 -0400 Received: from cassarossa.samfundet.no ([193.35.52.29]:49423 "EHLO cassarossa.samfundet.no" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752103AbbETKQS (ORCPT ); Wed, 20 May 2015 06:16:18 -0400 Date: Wed, 20 May 2015 12:15:15 +0200 From: Hans-Christian Egtvedt To: Jiang Liu Cc: Thomas Gleixner , Bjorn Helgaas , Benjamin Herrenschmidt , Ingo Molnar , "H. Peter Anvin" , "Rafael J. Wysocki" , Randy Dunlap , Yinghai Lu , Borislav Petkov , Haavard Skinnemoen , Konrad Rzeszutek Wilk , Tony Luck , x86@kernel.org, linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, linux-acpi@vger.kernel.org Subject: Re: [RFC v1 02/25] avr32, irq: Use irq_desc_get_xxx() to avoid redundant lookup of irq_desc Message-ID: <20150520101515.GA12898@samfundet.no> References: <1432116013-25902-1-git-send-email-jiang.liu@linux.intel.com> <1432116013-25902-3-git-send-email-jiang.liu@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1432116013-25902-3-git-send-email-jiang.liu@linux.intel.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1198 Lines: 33 Around Wed 20 May 2015 17:59:50 +0800 or thereabout, Jiang Liu wrote: > Use irq_desc_get_xxx() to avoid redundant lookup of irq_desc while we > already have a pointer to corresponding irq_desc. > > Signed-off-by: Jiang Liu Acked-by: Hans-Christian Egtvedt > --- > arch/avr32/mach-at32ap/pio.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/avr32/mach-at32ap/pio.c b/arch/avr32/mach-at32ap/pio.c > index 903c7d81d0d5..2583e6cc44e9 100644 > --- a/arch/avr32/mach-at32ap/pio.c > +++ b/arch/avr32/mach-at32ap/pio.c > @@ -286,7 +286,7 @@ static void gpio_irq_handler(unsigned irq, struct irq_desc *desc) > struct pio_device *pio = irq_desc_get_chip_data(desc); > unsigned gpio_irq; > > - gpio_irq = (unsigned) irq_get_handler_data(irq); > + gpio_irq = (unsigned) irq_desc_get_handler_data(desc); > for (;;) { > u32 isr; > -- mvh Hans-Christian Egtvedt -- 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/