From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Gleixner Subject: [patch 12/47] arm: Use ARCH_IRQ_INIT_FLAGS Date: Thu, 30 Sep 2010 23:15:38 -0000 Message-ID: <20100930221739.661942830@linutronix.de> References: <20100930221351.682772535@linutronix.de> Return-path: Received: from www.tglx.de ([62.245.132.106]:52487 "EHLO www.tglx.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754981Ab0I3XP7 (ORCPT ); Thu, 30 Sep 2010 19:15:59 -0400 Content-Disposition: inline; filename=arm-use-genirq-default-init-flags.patch Sender: linux-arch-owner@vger.kernel.org List-ID: To: LKML Cc: linux-arch@vger.kernel.org, Linus Torvalds , Andrew Morton , x86@kernel.org, Peter Zijlstra , Benjamin Herrenschmidt , Paul Mundt , Russell King , David Woodhouse , Jesse Barnes , Yinghai Lu , Grant Likely , "Eric W. Biederman" Define the ARCH_IRQ_INIT_FLAGS instead of fixing it up in a loop. Signed-off-by: Thomas Gleixner --- arch/arm/include/asm/hw_irq.h | 2 ++ arch/arm/kernel/irq.c | 4 +--- 2 files changed, 3 insertions(+), 3 deletions(-) Index: linux-2.6-tip/arch/arm/include/asm/hw_irq.h =================================================================== --- linux-2.6-tip.orig/arch/arm/include/asm/hw_irq.h +++ linux-2.6-tip/arch/arm/include/asm/hw_irq.h @@ -24,4 +24,6 @@ void set_irq_flags(unsigned int irq, uns #define IRQF_PROBE (1 << 1) #define IRQF_NOAUTOEN (1 << 2) +#define ARCH_IRQ_INIT_FLAGS (IRQ_NOREQUEST | IRQ_NOPROBE) + #endif Index: linux-2.6-tip/arch/arm/kernel/irq.c =================================================================== --- linux-2.6-tip.orig/arch/arm/kernel/irq.c +++ linux-2.6-tip/arch/arm/kernel/irq.c @@ -151,10 +151,8 @@ void __init init_IRQ(void) struct irq_desc *desc; int irq; - for (irq = 0; irq < nr_irqs; irq++) { + for (irq = 0; irq < nr_irqs; irq++) desc = irq_to_desc_alloc_node(irq, 0); - desc->status |= IRQ_NOREQUEST | IRQ_NOPROBE; - } init_arch_irq(); }