Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp872566pxb; Thu, 21 Oct 2021 11:05:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxc57zpL1LzpG9kYFtXXti22VXbwqNqHTFw9M9P0jSJjhVO/vRaHTLsILAC5QZa0LlEvNpj X-Received: by 2002:a17:90b:1e0b:: with SMTP id pg11mr8508549pjb.230.1634839502483; Thu, 21 Oct 2021 11:05:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634839502; cv=none; d=google.com; s=arc-20160816; b=IT6mr08C3YB+D+2S3Rna1BhNuq8k4IoAqFXDedmQITo1PPTxORG1XE7FJf6hgeOBl+ XBPPP4uCB5m7D4CWxGhACIKo0TvSWuYRQENmQlYJG88CPT4SrZWfNgirM3s1DiePhLk/ cY3sQ/p42vig04dFW2/RbEsgtWl5ktV41ukh7hJB8eDj6ci6SEZ8D2iZIf35dr+ZpNnC mH8j2ERIdVr4CiUcqYTlIuN3aeCC+26PZt3YB8fXbmAB4hCQO1NZ5YyyyxDF9ofAUT4Z 3GNZneChlHlI8bArblMxSESVAkB2WRXpHMiXJGfJV7OGI1+ud8qh0Q0fglV+x3YU8g7c v/hg== 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=0FpcVJLyAhwUhhpoAZrPnz5M9RwXnuM9z+tcC9HAkmE=; b=jUABAdDO8HTEz3kHi62KaJkxbrfacV6X1QCwOJym04S073Rc1bELeo5ngQRRZbHq0z SkqepsRtxzy47d+LmZGqGAT1SIXEO1ceuUW8e5pa4j67Z3n1Dxu+Wg/SWfP8sXoewhJ1 KXKqRZDpFCVm9m10fWQPnMaS8tU9k3mrqyuHWO3XGyPsEruDKSpQ0CodpIVtMGtheETG C1P72CN2krKuerK8BRavUmySk7hxWTC/p91mefe5o/CEaF8inXGAOOxMRk92fRtfUp9Q YLJvu+75PIeA74T/z+A3K9bSy2m5K/jSz2WS2ZXRhbGcMQsXYDrwso8c/K06rt9TCWoe DNQQ== 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 my14si9136274pjb.70.2021.10.21.11.04.44; Thu, 21 Oct 2021 11:05:02 -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 S232452AbhJUSFf (ORCPT + 99 others); Thu, 21 Oct 2021 14:05:35 -0400 Received: from foss.arm.com ([217.140.110.172]:45984 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232521AbhJUSFZ (ORCPT ); Thu, 21 Oct 2021 14:05:25 -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 35F801063; Thu, 21 Oct 2021 11:03:09 -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 560FA3F70D; Thu, 21 Oct 2021 11:03:06 -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 06/15] irq: arc: avoid CONFIG_HANDLE_DOMAIN_IRQ Date: Thu, 21 Oct 2021 19:02:27 +0100 Message-Id: <20211021180236.37428-7-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, have arch/arc perform all the necessary IRQ entry accounting in its entry code. There should be no functional change as a result of this patch. Signed-off-by: Mark Rutland Cc: Marc Zyngier Cc: Thomas Gleixner Cc: Vineet Gupta --- arch/arc/Kconfig | 1 - arch/arc/kernel/irq.c | 10 +++++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/arch/arc/Kconfig b/arch/arc/Kconfig index 3a5a80f302e1..b4ae6058902a 100644 --- a/arch/arc/Kconfig +++ b/arch/arc/Kconfig @@ -40,7 +40,6 @@ config ARC select HAVE_KRETPROBES select HAVE_MOD_ARCH_SPECIFIC select HAVE_PERF_EVENTS - select HANDLE_DOMAIN_IRQ select IRQ_DOMAIN select MODULES_USE_ELF_RELA select OF diff --git a/arch/arc/kernel/irq.c b/arch/arc/kernel/irq.c index ef909dd4b40c..dd09b58ff82d 100644 --- a/arch/arc/kernel/irq.c +++ b/arch/arc/kernel/irq.c @@ -6,6 +6,8 @@ #include #include #include + +#include #include /* @@ -39,5 +41,11 @@ void __init init_IRQ(void) */ void arch_do_IRQ(unsigned int hwirq, struct pt_regs *regs) { - handle_domain_irq(NULL, hwirq, regs); + struct pt_regs *old_regs; + + irq_enter(); + old_regs = set_irq_regs(regs); + generic_handle_domain_irq(NULL, hwirq); + set_irq_regs(old_regs); + irq_exit(); } -- 2.11.0