From patchwork Tue Aug 26 10:03:17 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marc Zyngier X-Patchwork-Id: 35956 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pd0-f197.google.com (mail-pd0-f197.google.com [209.85.192.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 83BD32054F for ; Tue, 26 Aug 2014 10:05:19 +0000 (UTC) Received: by mail-pd0-f197.google.com with SMTP id y10sf112313257pdj.0 for ; Tue, 26 Aug 2014 03:05:18 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=thv12XVhsKv4B5CPD2Pk9ZwAAqE2BDesUfg5/TS9zGQ=; b=HCL5VTa9NOxoCR/keuQTz9xfNcVGoiIypCuBzSIoATWaVCLbnfrjTtn+7amZCkOkOR 1zQayYWXs0FAQQJlUUQA4UwCrw4tTJJbosN/74p2bNyLKGzFOzi+ELBYeJDZIaN2YqpR P8PD3c1fjn8p060Jb0zNK+mc8N2TAd5S+1MWo3kzLuPOQ/mQ5doBLurZDhKHP4rZkyaz KLCjHvSK3Jo3L8agGUsJBUL1bMOrCOe/rVtsmgwoQJEH6MRco9o76JcBoUuzbLIttSXb H9r2BApXYNWH0ZgTv8riOccGm7CAA1haSiKZ2ZZ589mM5duCo1UQrgEyJ+8Rwman/kYf ZxQA== X-Gm-Message-State: ALoCoQn/b3YNRsQb9ASdaTO6Wg7ZuEYlu48PukIpYZgNcf/G+coY2guTyLpZUK6hxRD7ElqMgG6T X-Received: by 10.69.31.75 with SMTP id kk11mr17538301pbd.8.1409047518698; Tue, 26 Aug 2014 03:05:18 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.31.161 with SMTP id f30ls562677qgf.39.gmail; Tue, 26 Aug 2014 03:05:18 -0700 (PDT) X-Received: by 10.52.0.132 with SMTP id 4mr7497514vde.10.1409047518560; Tue, 26 Aug 2014 03:05:18 -0700 (PDT) Received: from mail-vc0-f172.google.com (mail-vc0-f172.google.com [209.85.220.172]) by mx.google.com with ESMTPS id fc4si1170785vcb.86.2014.08.26.03.05.18 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 26 Aug 2014 03:05:18 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.172 as permitted sender) client-ip=209.85.220.172; Received: by mail-vc0-f172.google.com with SMTP id im17so16524505vcb.31 for ; Tue, 26 Aug 2014 03:05:18 -0700 (PDT) X-Received: by 10.220.132.207 with SMTP id c15mr16774389vct.12.1409047518471; Tue, 26 Aug 2014 03:05:18 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.221.45.67 with SMTP id uj3csp185020vcb; Tue, 26 Aug 2014 03:05:17 -0700 (PDT) X-Received: by 10.68.201.68 with SMTP id jy4mr36071155pbc.64.1409047517613; Tue, 26 Aug 2014 03:05:17 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ti10si3191070pab.206.2014.08.26.03.05.16 for ; Tue, 26 Aug 2014 03:05:17 -0700 (PDT) Received-SPF: none (google.com: linux-kernel-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934445AbaHZKD4 (ORCPT + 26 others); Tue, 26 Aug 2014 06:03:56 -0400 Received: from fw-tnat.austin.arm.com ([217.140.110.23]:20563 "EHLO collaborate-mta1.arm.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S934418AbaHZKDx (ORCPT ); Tue, 26 Aug 2014 06:03:53 -0400 Received: from e102391-lin.cambridge.arm.com (e102391-lin.cambridge.arm.com [10.1.209.143]) by collaborate-mta1.arm.com (Postfix) with ESMTP id 8B37C13FAD1; Tue, 26 Aug 2014 05:03:49 -0500 (CDT) From: Marc Zyngier To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org, linux@lists.openrisc.net Cc: linux@arm.linux.org.uk, shawn.guo@freescale.com, kernel@pengutronix.de, tony@atomide.com, catalin.marinas@arm.com, will.deacon@arm.com, jonas@southpole.se, tglx@linutronix.de, jason@lakedaemon.net, shc_work@mail.ru, baohua@kernel.org, maxime.ripard@free-electrons.com, marc.zyngier@arm.com, khilman@linaro.org, sboyd@codeaurora.org, lorenzo.pieralisi@arm.com, larry.bassel@linaro.org, mark.rutland@arm.com, sudeep.holla@arm.com, stefan.kristiansson@saunalahti.fi, vkale@apm.com, schwidefsky@de.ibm.com Subject: [PATCH v2 02/26] arm64: convert handle_IRQ to use __handle_domain_irq Date: Tue, 26 Aug 2014 11:03:17 +0100 Message-Id: <1409047421-27649-3-git-send-email-marc.zyngier@arm.com> X-Mailer: git-send-email 2.0.4 In-Reply-To: <1409047421-27649-1-git-send-email-marc.zyngier@arm.com> References: <1409047421-27649-1-git-send-email-marc.zyngier@arm.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: marc.zyngier@arm.com X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.172 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , In order to limit code duplication, convert the architecture specific handle_IRQ to use the generic __handle_domain_irq function. Signed-off-by: Marc Zyngier Acked-by: Catalin Marinas --- arch/arm64/Kconfig | 1 + arch/arm64/kernel/irq.c | 18 +----------------- 2 files changed, 2 insertions(+), 17 deletions(-) diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index fd4e81a..1f16ed9 100644 --- a/arch/arm64/Kconfig +++ b/arch/arm64/Kconfig @@ -30,6 +30,7 @@ config ARM64 select GENERIC_STRNCPY_FROM_USER select GENERIC_STRNLEN_USER select GENERIC_TIME_VSYSCALL + select HANDLE_DOMAIN_IRQ select HARDIRQS_SW_RESEND select HAVE_ARCH_AUDITSYSCALL select HAVE_ARCH_JUMP_LABEL diff --git a/arch/arm64/kernel/irq.c b/arch/arm64/kernel/irq.c index 0f08dfd..2c0e2a7 100644 --- a/arch/arm64/kernel/irq.c +++ b/arch/arm64/kernel/irq.c @@ -48,23 +48,7 @@ int arch_show_interrupts(struct seq_file *p, int prec) */ void handle_IRQ(unsigned int irq, struct pt_regs *regs) { - struct pt_regs *old_regs = set_irq_regs(regs); - - irq_enter(); - - /* - * Some hardware gives randomly wrong interrupts. Rather - * than crashing, do something sensible. - */ - if (unlikely(irq >= nr_irqs)) { - pr_warn_ratelimited("Bad IRQ%u\n", irq); - ack_bad_irq(irq); - } else { - generic_handle_irq(irq); - } - - irq_exit(); - set_irq_regs(old_regs); + __handle_domain_irq(NULL, irq, false, regs); } void __init set_handle_irq(void (*handle_irq)(struct pt_regs *))