Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933781AbbFWV7x (ORCPT ); Tue, 23 Jun 2015 17:59:53 -0400 Received: from devils.ext.ti.com ([198.47.26.153]:42021 "EHLO devils.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933503AbbFWV7e (ORCPT ); Tue, 23 Jun 2015 17:59:34 -0400 From: Felipe Balbi To: Mark Salter , Aurelien Jacquiot CC: Linux Kernel Mailing List , , Felipe Balbi Subject: [PATCH] c67: irq: don't reimplement __handle_domain_irq() Date: Tue, 23 Jun 2015 16:59:25 -0500 Message-ID: <1435096765-31873-1-git-send-email-balbi@ti.com> X-Mailer: git-send-email 2.4.4 MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1371 Lines: 51 c6x_do_IRQ() had a reimplementation of __handle_domain_irq(), instead just call that. Signed-off-by: Felipe Balbi --- Patch wasn't even compile tested because I really don't have c6x GCC around. If someone could test the patch before applying, that would avoid regressions. arch/c6x/kernel/irq.c | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/arch/c6x/kernel/irq.c b/arch/c6x/kernel/irq.c index 247e0eb5e467..a7f73bc765ac 100644 --- a/arch/c6x/kernel/irq.c +++ b/arch/c6x/kernel/irq.c @@ -58,22 +58,13 @@ static struct irq_chip core_chip = { }; static int prio_to_virq[NR_PRIORITY_IRQS]; +static struct irq_domain *core_domain; asmlinkage void c6x_do_IRQ(unsigned int prio, struct pt_regs *regs) { - struct pt_regs *old_regs = set_irq_regs(regs); - - irq_enter(); - - generic_handle_irq(prio_to_virq[prio]); - - irq_exit(); - - set_irq_regs(old_regs); + __handle_domain_irq(core_domain, prio, true, regs); } -static struct irq_domain *core_domain; - static int core_domain_map(struct irq_domain *h, unsigned int virq, irq_hw_number_t hw) { -- 2.4.4 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/