diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2017-06-29 23:33:39 +0200 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2017-07-04 12:46:16 +0200 |
commit | 2343877fbda701599653e63f8dcc318aa1bf15ee (patch) | |
tree | d7880af87c74ca66ecd49f2d933412894551db8a /kernel/irq | |
parent | 46e48e257360f0845fe17089713cbad4db611e70 (diff) | |
download | linux-stable-2343877fbda701599653e63f8dcc318aa1bf15ee.tar.gz linux-stable-2343877fbda701599653e63f8dcc318aa1bf15ee.tar.bz2 linux-stable-2343877fbda701599653e63f8dcc318aa1bf15ee.zip |
genirq/timings: Move free timings out of spinlocked region
No point to do memory management from a interrupt disabled spin locked
region.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Marc Zyngier <marc.zyngier@arm.com>
Cc: Daniel Lezcano <daniel.lezcano@linaro.org>
Cc: Heiko Stuebner <heiko@sntech.de>
Cc: Julia Cartwright <julia@ni.com>
Cc: Linus Walleij <linus.walleij@linaro.org>
Cc: Brian Norris <briannorris@chromium.org>
Cc: Doug Anderson <dianders@chromium.org>
Cc: linux-rockchip@lists.infradead.org
Cc: John Keeping <john@metanate.com>
Cc: linux-gpio@vger.kernel.org
Link: http://lkml.kernel.org/r/20170629214344.196130646@linutronix.de
Diffstat (limited to 'kernel/irq')
-rw-r--r-- | kernel/irq/manage.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/kernel/irq/manage.c b/kernel/irq/manage.c index 3e693430bfe1..91e1f2390752 100644 --- a/kernel/irq/manage.c +++ b/kernel/irq/manage.c @@ -1489,7 +1489,6 @@ static struct irqaction *__free_irq(unsigned int irq, void *dev_id) if (!desc->action) { irq_settings_clr_disable_unlazy(desc); irq_shutdown(desc); - irq_remove_timings(desc); } #ifdef CONFIG_SMP @@ -1531,8 +1530,10 @@ static struct irqaction *__free_irq(unsigned int irq, void *dev_id) } } - if (!desc->action) + if (!desc->action) { irq_release_resources(desc); + irq_remove_timings(desc); + } mutex_unlock(&desc->request_mutex); |