]> git.karo-electronics.de Git - linux-beck.git/commitdiff
genirq: Replace dynamic_irq_init/cleanup
authorThomas Gleixner <tglx@linutronix.de>
Wed, 7 May 2014 15:44:22 +0000 (15:44 +0000)
committerThomas Gleixner <tglx@linutronix.de>
Fri, 16 May 2014 12:05:22 +0000 (14:05 +0200)
Create a new interface and confine it with a config switch which makes
clear that this is just legacy support and not to be used for new code.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Grant Likely <grant.likely@linaro.org>
Tested-by: Tony Luck <tony.luck@intel.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/20140507154340.574437049@linutronix.de
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
include/linux/irq.h
kernel/irq/Kconfig
kernel/irq/irqdesc.c

index 2110f46fcafa6950c915a0bac9a0e97bc71faea0..8ff71d14365adef1b87c0a6aa7feb3a59a651bd4 100644 (file)
@@ -637,6 +637,10 @@ int arch_setup_hwirq(unsigned int irq, int node);
 void arch_teardown_hwirq(unsigned int irq);
 #endif
 
+#ifdef CONFIG_GENERIC_IRQ_LEGACY
+void irq_init_desc(unsigned int irq);
+#endif
+
 #ifndef irq_reg_writel
 # define irq_reg_writel(val, addr)     writel(val, addr)
 #endif
index a83f10e406c1168419968edb3ffd801a10db6890..d269cecdfbf08a48c3a24b1adf89a037eff7485d 100644 (file)
@@ -5,6 +5,10 @@ menu "IRQ subsystem"
 config MAY_HAVE_SPARSE_IRQ
        bool
 
+# Legacy support, required for itanic
+config GENERIC_IRQ_LEGACY
+       bool
+
 # Enable the generic irq autoprobe mechanism
 config GENERIC_IRQ_PROBE
        bool
index d514ed6080e1cf2ae3cb74d5f9e01a53f40e42b1..7f267799a717c8a3e5460ece791af334546fce63 100644 (file)
@@ -306,6 +306,13 @@ void irq_mark_irq(unsigned int irq)
        mutex_unlock(&sparse_irq_lock);
 }
 
+#ifdef CONFIG_GENERIC_IRQ_LEGACY
+void irq_init_desc(unsigned int irq)
+{
+       dynamic_irq_cleanup(irq);
+}
+#endif
+
 #endif /* !CONFIG_SPARSE_IRQ */
 
 /**