Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp5267480ybi; Tue, 4 Jun 2019 04:08:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqyK9mg8PKaTCJcSXmyHS18ibaAYr0OQaR4GEzCZZnExRLGK9vlYDhXLeJlnRQd+qHrvI04d X-Received: by 2002:a63:1919:: with SMTP id z25mr35009727pgl.440.1559646515031; Tue, 04 Jun 2019 04:08:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559646515; cv=none; d=google.com; s=arc-20160816; b=NM/UyEnQ7Mdr4aEYw9lADIpSZbX4xsi7wK3OYYGjynK7lXw+GUtZpRoNhbz48gTA7i gy6fJvD9QDx5eHY3A4dObunPX0a1QPPWvoF77LB7hmtr7PPvyb4JNR1ma08mAtVpu41f tjfRCEsYl9papwyzSkubMThbbyC5mQ04JU+8gdEN97BUmYFI6VDAccvPP3i7dC62676t bFm7JWErY3adWeOQ9zR8YI7tgPm4VAMXLNxRfqc4ympx3RXZaPnv2krhDfouSVbtagAf dmeXfVB6sclcejjzN5V/wuf6gL09SfBqVeQpWe4jDPyuVd3YxfV5dhd7KwlGPD5z5iFo csyA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=2CqpNd5HMhGqHnTS7KijbE+5H0P0fcDLHVZvOBBPNjY=; b=GeTQhObErNs8NAHA1Lz4QNTDu5vfARfmNPMvl1z6QYNk8X7OJCIRUnCqfv/PegY+dI 3zko1DAQYb/5FHNloq6x+Ty/vvznlGF8SXLU4Kj0x1jb1jxCnwVDkcZEWfFAWbmgg4kE N4mPKW5SMkcKkcyFo1jhVpa8oXyHCeIQ5/4KtBuB+BWdBnsxwyo96bwXxqPC0jn8I7TS Kw0FmhYAfM0UKGJFZayF12hljd5ZGUgxcpVSSZjkssOoDUmmJwYKPzUw+624j5CdUw8y A2cJj8GV/js8CizpF3dvb7JfxQNLJjWbQnMY5Wdn7vOP1dGzI1aYMmUhityrPymEEgF1 kLXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=G18gyFNI; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h2si11043130plh.368.2019.06.04.04.08.18; Tue, 04 Jun 2019 04:08:35 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=G18gyFNI; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727602AbfFDLF6 (ORCPT + 99 others); Tue, 4 Jun 2019 07:05:58 -0400 Received: from mail.kernel.org ([198.145.29.99]:60738 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727242AbfFDLF4 (ORCPT ); Tue, 4 Jun 2019 07:05:56 -0400 Received: from localhost.localdomain (unknown [223.93.147.148]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 8E7E9247FC; Tue, 4 Jun 2019 11:05:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1559646356; bh=QCciAXZOWSYqp12nDOySk0Dfu903DAThXA8VOOFo/O8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=G18gyFNIj3nVOkLmOnLE4/LHinmOO9jGBJSCia8IiXmo/ZDmlkFGLVzdtND19AVr4 3Ps9CVq+rNe9IUrWdxCFdNdXn+fTfS+jgTvMjCbjHKlZ17ShbjAL3MXb28x2KMWUkC vs4gnF9H882dSDdwI1l5cE31rB5G3zgSbgtx8V68= From: guoren@kernel.org To: marc.zyngier@arm.com, mark.rutland@arm.com, tglx@linutronix.de Cc: linux-kernel@vger.kernel.org, jason@lakedaemon.net, guoren@kernel.org, linux-csky@vger.kernel.org, Guo Ren Subject: [PATCH V4 4/4] irqchip/irq-csky-mpintc: Remove unnecessary loop in interrupt handler Date: Tue, 4 Jun 2019 19:05:06 +0800 Message-Id: <1559646306-18860-5-git-send-email-guoren@kernel.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1559646306-18860-1-git-send-email-guoren@kernel.org> References: <1559646306-18860-1-git-send-email-guoren@kernel.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Guo Ren csky_mpintc_handler() ->handle_domain_irq() ->irq_exit() ->invoke_softirq() ->__do_softirq() ->local_irq_enable() If new interrupt coming, it'll get into interrupt trap before return to csky_mpintc_handler(). So there is no need loop in csky_mpintc_handler. Signed-off-by: Guo Ren Cc: Marc Zyngier --- drivers/irqchip/irq-csky-mpintc.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/drivers/irqchip/irq-csky-mpintc.c b/drivers/irqchip/irq-csky-mpintc.c index 2740dd5..122cd43 100644 --- a/drivers/irqchip/irq-csky-mpintc.c +++ b/drivers/irqchip/irq-csky-mpintc.c @@ -75,11 +75,8 @@ static void csky_mpintc_handler(struct pt_regs *regs) { void __iomem *reg_base = this_cpu_read(intcl_reg); - do { - handle_domain_irq(root_domain, - readl_relaxed(reg_base + INTCL_RDYIR), - regs); - } while (readl_relaxed(reg_base + INTCL_HPPIR) & BIT(31)); + handle_domain_irq(root_domain, + readl_relaxed(reg_base + INTCL_RDYIR), regs); } static void csky_mpintc_enable(struct irq_data *d) -- 2.7.4