Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp872132pxb; Thu, 21 Oct 2021 11:04:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwkqe8y8/IFHXLovrVoOgmO3DWctJ54bvLQG2B8hos8KEouWa4QCVfcdSKkT5IyIl+cADfa X-Received: by 2002:a17:90a:5b09:: with SMTP id o9mr1792593pji.171.1634839475818; Thu, 21 Oct 2021 11:04:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634839475; cv=none; d=google.com; s=arc-20160816; b=KFDUDRpSoJ4A4+bDCNTZlGUsL4OynLztFmDzXirtr+86HYoPGrEgd4BsXw8/dFNqJB HFjx2Lj85RpnFfG8zVDwHqmyk9L4MfKgHgXkaAZZCa7N9RzlXnvygtM7ZuVglIQLnT+J i4tWhSaK9YWiZEC3fluDC/nFxYhZjXg4cK7abHDkInZog2jX6XfYteqTVNBShkuecShE tXf8+QM8ftrMHrppMAL2jmMJV+loSYHGQBuc6XnfulBHbVXYTkLcD+Oskw2jodMGqgYm +ICb+NwWcEQj6kqXpg3FvnAmUOa27klYN8tOEqH3TYM+HZiCsp0ZvItBPCfFv24dR2kY wlhQ== 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=0XZunVoUiIiDc6bP0H5Dc1Gi7jYHa50kB1P0lk9IILE=; b=yeRTxkSukGEoWtjMF8buKcw5Ggk8EehxfPk6Mi7TxOrMLWOBIT8NSjeKNdAb5513oR hh6PpWE3820WmhVq29CEZ2CSEcVPSmXiOEVLwVRR3IRjS4Sh6yDJGT+0+4qoPGNx5X+n 7P95C9RsJeBjLxJTIYP7Koo3WXfgkpQuwLqjJKAtyE2ZlvgclqZTzTpnUQ8HejFP7vEE +9iNDWSGClzqpHJNENY24kv7SV6jpbeGOeaVfN2mON3nrZ5OTkfqXpB6uR+TE86v+CgU xhjvjGWjNB1PkV7mHuRwx7PR4QrsER+sM7HlzenZcebfTsinuotS7KOEuhd+Jq/VBrGU 3Yvw== 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 j10si7302714pgq.452.2021.10.21.11.04.21; Thu, 21 Oct 2021 11:04:35 -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 S230267AbhJUSFP (ORCPT + 99 others); Thu, 21 Oct 2021 14:05:15 -0400 Received: from foss.arm.com ([217.140.110.172]:45882 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229914AbhJUSFN (ORCPT ); Thu, 21 Oct 2021 14:05:13 -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 DD09E1476; Thu, 21 Oct 2021 11:02:56 -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 03F193F70D; Thu, 21 Oct 2021 11:02:53 -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 03/15] irq: mips: simplify do_domain_IRQ() Date: Thu, 21 Oct 2021 19:02:24 +0100 Message-Id: <20211021180236.37428-4-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 There's no need fpr arch/mips's do_domain_IRQ() to open-code the NULL check performed by handle_irq_desc(), nor the resolution of the desc performed by generic_handle_domain_irq(). Use generic_handle_domain_irq() directly, as this is functioanlly equivalent and clearer. There should be no functional change as a result of this patch. Signed-off-by: Mark Rutland Cc: Marc Zyngier Cc: Thomas Bogendoerfer Cc: Thomas Gleixner --- arch/mips/kernel/irq.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/arch/mips/kernel/irq.c b/arch/mips/kernel/irq.c index d20e002b3246..1fee96ef8059 100644 --- a/arch/mips/kernel/irq.c +++ b/arch/mips/kernel/irq.c @@ -115,11 +115,7 @@ void __irq_entry do_domain_IRQ(struct irq_domain *domain, unsigned int hwirq) irq_enter(); check_stack_overflow(); - - desc = irq_resolve_mapping(domain, hwirq); - if (likely(desc)) - handle_irq_desc(desc); - + generic_handle_domain_irq(domain, hwirq); irq_exit(); } #endif -- 2.11.0