From patchwork Tue Aug 26 10:03:19 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marc Zyngier X-Patchwork-Id: 35958 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pa0-f70.google.com (mail-pa0-f70.google.com [209.85.220.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id AB2B52054F for ; Tue, 26 Aug 2014 10:05:21 +0000 (UTC) Received: by mail-pa0-f70.google.com with SMTP id lf10sf126623146pab.5 for ; Tue, 26 Aug 2014 03:05:21 -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=RGF5YOiUyN+qHEkgPLK7e7S/W0kcJEtpaqP8LOsurHM=; b=e03KSzXXu4gUGvP1AVq5CID0jNjmU/cPno7i/gfbFeKh8XVi0Gz1uWSpmuS9Hf07hY LNgh+e8J4HSDECpK9rSb0u82n+QayFZd7Yzv8cFin/efahLvnIDcOMIRUB0pQjw5VHVu /wyDd2GfV4P0LOUMFt4j7cfuwYtdbDR0CVyu2QY8XDME9hWcXWz+syS/1Hs69h4pyDof eSvQ89EpyMbvo7LKftvydkA49Z88SgnB9CkYoHve85DC+a7e8llSJSQAusxj124GdWXI o7R/DcWik6I4r9DR3ztqlqolaj6CtXvVJjaP+s5j5RMdb+iLsJb2wE9tX9yvujAVKmFp d85A== X-Gm-Message-State: ALoCoQnKajuuDtikypUIVsAGLGdoaOiAZLkX6UV1a6JwoRSry28fFqoDUke58LI8joHIbPctznwQ X-Received: by 10.68.216.231 with SMTP id ot7mr17546395pbc.2.1409047520787; Tue, 26 Aug 2014 03:05:20 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.42.87 with SMTP id b81ls2393463qga.19.gmail; Tue, 26 Aug 2014 03:05:20 -0700 (PDT) X-Received: by 10.52.38.67 with SMTP id e3mr183442vdk.56.1409047520658; Tue, 26 Aug 2014 03:05:20 -0700 (PDT) Received: from mail-vc0-f179.google.com (mail-vc0-f179.google.com [209.85.220.179]) by mx.google.com with ESMTPS id 9si1165596vcq.96.2014.08.26.03.05.20 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 26 Aug 2014 03:05:20 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.179 as permitted sender) client-ip=209.85.220.179; Received: by mail-vc0-f179.google.com with SMTP id hq11so16483548vcb.38 for ; Tue, 26 Aug 2014 03:05:20 -0700 (PDT) X-Received: by 10.52.164.199 with SMTP id ys7mr9421759vdb.42.1409047520552; Tue, 26 Aug 2014 03:05:20 -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 uj3csp185024vcb; Tue, 26 Aug 2014 03:05:20 -0700 (PDT) X-Received: by 10.68.111.193 with SMTP id ik1mr18194385pbb.145.1409047519650; Tue, 26 Aug 2014 03:05:19 -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.18 for ; Tue, 26 Aug 2014 03:05:19 -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 S934483AbaHZKEF (ORCPT + 26 others); Tue, 26 Aug 2014 06:04:05 -0400 Received: from fw-tnat.austin.arm.com ([217.140.110.23]:20631 "EHLO collaborate-mta1.arm.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S934418AbaHZKEA (ORCPT ); Tue, 26 Aug 2014 06:04:00 -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 B863413FB66; Tue, 26 Aug 2014 05:03:56 -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 04/26] openrisc: convert handle_IRQ to use __handle_domain_irq Date: Tue, 26 Aug 2014 11:03:19 +0100 Message-Id: <1409047421-27649-5-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.179 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 --- arch/openrisc/Kconfig | 1 + arch/openrisc/kernel/irq.c | 9 +-------- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/arch/openrisc/Kconfig b/arch/openrisc/Kconfig index 88e8336..e5a693b 100644 --- a/arch/openrisc/Kconfig +++ b/arch/openrisc/Kconfig @@ -8,6 +8,7 @@ config OPENRISC select OF select OF_EARLY_FLATTREE select IRQ_DOMAIN + select HANDLE_DOMAIN_IRQ select HAVE_MEMBLOCK select ARCH_REQUIRE_GPIOLIB select HAVE_ARCH_TRACEHOOK diff --git a/arch/openrisc/kernel/irq.c b/arch/openrisc/kernel/irq.c index 967eb14..e9aaf28 100644 --- a/arch/openrisc/kernel/irq.c +++ b/arch/openrisc/kernel/irq.c @@ -50,14 +50,7 @@ void __init set_handle_irq(void (*handle_irq)(struct pt_regs *)) void handle_IRQ(unsigned int irq, struct pt_regs *regs) { - struct pt_regs *old_regs = set_irq_regs(regs); - - irq_enter(); - - generic_handle_irq(irq); - - irq_exit(); - set_irq_regs(old_regs); + __handle_domain_irq(NULL, irq, false, regs); } void __irq_entry do_IRQ(struct pt_regs *regs)