diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2014-05-07 11:44:22 -0400 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2014-05-16 08:05:22 -0400 |
commit | c940e01c94e73a2a5318f1b82038e0746aaec753 (patch) | |
tree | 87ec46bf3a6767df46713d62a007cc1ae42e8353 /kernel/irq | |
parent | 1d008353ba088fdec0b2a944e140ff9154a5fb20 (diff) |
genirq: Replace dynamic_irq_init/cleanup
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>
Diffstat (limited to 'kernel/irq')
-rw-r--r-- | kernel/irq/Kconfig | 4 | ||||
-rw-r--r-- | kernel/irq/irqdesc.c | 7 |
2 files changed, 11 insertions, 0 deletions
diff --git a/kernel/irq/Kconfig b/kernel/irq/Kconfig index a83f10e406c1..d269cecdfbf0 100644 --- a/kernel/irq/Kconfig +++ b/kernel/irq/Kconfig | |||
@@ -5,6 +5,10 @@ menu "IRQ subsystem" | |||
5 | config MAY_HAVE_SPARSE_IRQ | 5 | config MAY_HAVE_SPARSE_IRQ |
6 | bool | 6 | bool |
7 | 7 | ||
8 | # Legacy support, required for itanic | ||
9 | config GENERIC_IRQ_LEGACY | ||
10 | bool | ||
11 | |||
8 | # Enable the generic irq autoprobe mechanism | 12 | # Enable the generic irq autoprobe mechanism |
9 | config GENERIC_IRQ_PROBE | 13 | config GENERIC_IRQ_PROBE |
10 | bool | 14 | bool |
diff --git a/kernel/irq/irqdesc.c b/kernel/irq/irqdesc.c index d514ed6080e1..7f267799a717 100644 --- a/kernel/irq/irqdesc.c +++ b/kernel/irq/irqdesc.c | |||
@@ -306,6 +306,13 @@ void irq_mark_irq(unsigned int irq) | |||
306 | mutex_unlock(&sparse_irq_lock); | 306 | mutex_unlock(&sparse_irq_lock); |
307 | } | 307 | } |
308 | 308 | ||
309 | #ifdef CONFIG_GENERIC_IRQ_LEGACY | ||
310 | void irq_init_desc(unsigned int irq) | ||
311 | { | ||
312 | dynamic_irq_cleanup(irq); | ||
313 | } | ||
314 | #endif | ||
315 | |||
309 | #endif /* !CONFIG_SPARSE_IRQ */ | 316 | #endif /* !CONFIG_SPARSE_IRQ */ |
310 | 317 | ||
311 | /** | 318 | /** |