Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp874292pxb; Thu, 21 Oct 2021 11:06:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyZRLA43TtroNQ9Og7oHWiQL+QnJYOYlLa81eZWAu88zRGHwocwaeJ4UL8vlAolmhunv76H X-Received: by 2002:a63:ed03:: with SMTP id d3mr5703138pgi.24.1634839604716; Thu, 21 Oct 2021 11:06:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634839604; cv=none; d=google.com; s=arc-20160816; b=vitR3kn/5Ybob4WnXUmi+cgqtzEH7MVjK+MrQr09N5HOSzLFy88PYNZ+nbH2m4hBk1 zcy8+g5lGRGmlWQczjUYQBHwEMUMxDgIAIc5tTz69/eASd7RLU1bLN5ErtpYoCZ5SVw7 3udRuxyibUZr2tFr7tug5BElydhLR8675EGFr3dipIP/UJQVlpJN4OtS1jT5lLenryWq 5sNogTweCkw1tIgd/HldSPjlhb/fqoTDRfN04UDmxRMtvQtVolnwNuY+eYjsuVtyy8Aw z7TRNftWLDgZfQVS0gfBu/kWTv3RGHPfJkBjiBFtPYoFJfg4L7iyj8eR/kqmcwTlxC9q J7bA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from; bh=NzKsoEHLGY+/f2Rzeuq6zbgMIhGjsQhkrOFeLUk6POM=; b=aiNz8Tv1IA+Qvq4iZIRulfF3bu9up/QkI4gjOJpDWlA+isgDQ92xdIxt1Hmnz/lqru 9SWMigl75/J8bT8D8BeoWe5PVuNW7oGUFMigccK/Vehk6l9Ou+/KXgwcz1ASadrrzCWq 4XGFQp7oER3kISaEMGACzgH8+vv1Q2V3sQb2TjztxI5mOErayKnrNjsDsUMVSYEjLtnX L/PVQi5vfYGBA35KUpOFZ/JTnUa/x5xOI94uC6KgKlNIaGrKzOIf2/J+WP4+yGcpujoN KXLja6Z2KMUDk1jZEPmapOfRomF6ZeJdJc3kGKHnsbLfeIEtfaEdxZ4QkdmOZfjI3EC5 2w8w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a2si7476970pls.44.2021.10.21.11.06.30; Thu, 21 Oct 2021 11:06:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232525AbhJUSGI (ORCPT + 99 others); Thu, 21 Oct 2021 14:06:08 -0400 Received: from foss.arm.com ([217.140.110.172]:46186 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232524AbhJUSFv (ORCPT ); Thu, 21 Oct 2021 14:05:51 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 832861474; Thu, 21 Oct 2021 11:03:35 -0700 (PDT) Received: from lakrids.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.121.207.14]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id A3FEA3F70D; Thu, 21 Oct 2021 11:03:32 -0700 (PDT) From: Mark Rutland To: linux-kernel@vger.kernel.org Cc: aou@eecs.berkeley.edu, catalin.marinas@arm.com, deanbo422@gmail.com, green.hu@gmail.com, guoren@kernel.org, jonas@southpole.se, kernelfans@gmail.com, linux-arm-kernel@lists.infradead.org, linux@armlinux.org.uk, mark.rutland@arm.com, maz@kernel.org, nickhu@andestech.com, palmer@dabbelt.com, paulmck@kernel.org, paul.walmsley@sifive.com, peterz@infradead.org, shorne@gmail.com, stefan.kristiansson@saunalahti.fi, tglx@linutronix.de, torvalds@linux-foundation.org, tsbogend@alpha.franken.de, vgupta@kernel.org, will@kernel.org Subject: [PATCH 12/15] irq: openrisc: perform irqentry in entry code Date: Thu, 21 Oct 2021 19:02:33 +0100 Message-Id: <20211021180236.37428-13-mark.rutland@arm.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20211021180236.37428-1-mark.rutland@arm.com> References: <20211021180236.37428-1-mark.rutland@arm.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org In preparation for removing HANDLE_DOMAIN_IRQ_IRQENTRY, have arch/openrisc perform all the irqentry accounting in its entry code. As arch/openrisc uses GENERIC_IRQ_MULTI_HANDLER, we can use generic_handle_arch_irq() to do so. There should be no functional change as a result of this patch. Signed-off-by: Mark Rutland Cc: Jonas Bonn Cc: Marc Zyngier Cc: Stafford Horne Cc: Stefan Kristiansson Cc: Thomas Gleixner --- arch/openrisc/Kconfig | 1 - arch/openrisc/kernel/entry.S | 4 ++-- arch/openrisc/kernel/irq.c | 5 ----- 3 files changed, 2 insertions(+), 8 deletions(-) diff --git a/arch/openrisc/Kconfig b/arch/openrisc/Kconfig index ed783a67065e..e804026b4797 100644 --- a/arch/openrisc/Kconfig +++ b/arch/openrisc/Kconfig @@ -14,7 +14,6 @@ config OPENRISC select OF_EARLY_FLATTREE select IRQ_DOMAIN select HANDLE_DOMAIN_IRQ - select HANDLE_DOMAIN_IRQ_IRQENTRY select GPIOLIB select HAVE_ARCH_TRACEHOOK select SPARSE_IRQ diff --git a/arch/openrisc/kernel/entry.S b/arch/openrisc/kernel/entry.S index edaa775a648e..59c6d3aa7081 100644 --- a/arch/openrisc/kernel/entry.S +++ b/arch/openrisc/kernel/entry.S @@ -569,8 +569,8 @@ EXCEPTION_ENTRY(_external_irq_handler) #endif CLEAR_LWA_FLAG(r3) l.addi r3,r1,0 - l.movhi r8,hi(do_IRQ) - l.ori r8,r8,lo(do_IRQ) + l.movhi r8,hi(generic_handle_arch_irq) + l.ori r8,r8,lo(generic_handle_arch_irq) l.jalr r8 l.nop l.j _ret_from_intr diff --git a/arch/openrisc/kernel/irq.c b/arch/openrisc/kernel/irq.c index c38fa863afa8..f38e10962a84 100644 --- a/arch/openrisc/kernel/irq.c +++ b/arch/openrisc/kernel/irq.c @@ -36,8 +36,3 @@ void __init init_IRQ(void) { irqchip_init(); } - -void __irq_entry do_IRQ(struct pt_regs *regs) -{ - handle_arch_irq(regs); -} -- 2.11.0