From patchwork Thu Jun 29 21:33:39 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Gleixner X-Patchwork-Id: 782466 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 3wzCrK2dCqz9s72 for ; Fri, 30 Jun 2017 07:45:21 +1000 (AEST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753163AbdF2VpT (ORCPT ); Thu, 29 Jun 2017 17:45:19 -0400 Received: from Galois.linutronix.de ([146.0.238.70]:59319 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752397AbdF2VpS (ORCPT ); Thu, 29 Jun 2017 17:45:18 -0400 Received: from localhost ([127.0.0.1] helo=[127.0.1.1]) by Galois.linutronix.de with esmtp (Exim 4.80) (envelope-from ) id 1dQhEM-0001Km-Ph; Thu, 29 Jun 2017 23:44:07 +0200 Message-Id: <20170629214344.196130646@linutronix.de> User-Agent: quilt/0.63-1 Date: Thu, 29 Jun 2017 23:33:39 +0200 From: Thomas Gleixner To: LKML Cc: Marc Zyngier , Linus Walleij , Brian Norris , Heiko Stuebner , linux-rockchip@lists.infradead.org, Julia Cartwright , linux-gpio@vger.kernel.org, John Keeping , Doug Anderson , Daniel Lezcano Subject: [patch 5/5] genirq/timings: Move free timings out of spinlocked region References: <20170629213334.375848050@linutronix.de> MIME-Version: 1.0 Content-Disposition: inline; filename=genirq-timings--Move-free-timings-out-of-spinlocked-region.patch Sender: linux-gpio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org No point to do memory management from a interrupt disabled spin locked region. Signed-off-by: Thomas Gleixner Cc: Daniel Lezcano --- kernel/irq/manage.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe linux-gpio" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html --- a/kernel/irq/manage.c +++ b/kernel/irq/manage.c @@ -1489,7 +1489,6 @@ static struct irqaction *__free_irq(unsi 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(unsi } } - if (!desc->action) + if (!desc->action) { irq_release_resources(desc); + irq_remove_timings(desc); + } mutex_unlock(&desc->request_mutex);