From patchwork Wed Mar 7 23:57:31 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Palmer Dabbelt X-Patchwork-Id: 10265663 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 9ACE960211 for ; Wed, 7 Mar 2018 23:59:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8A05428AD0 for ; Wed, 7 Mar 2018 23:59:50 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7E67528C61; Wed, 7 Mar 2018 23:59:50 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 0AC4828AD0 for ; Wed, 7 Mar 2018 23:59:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:To:From:References: In-Reply-To:Message-Id:Date:Subject:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=O4SAoedfzELOICpbLPLLtx2tBemGE/pE+0NqHEDKR2w=; b=RUVvAN6fj7lNBz cxPeHy+f8fJj7+HPpEei3YbVUOm7JltpT1uVIZkCQJMaV8ckGDGMK1KDrY7iXKeOgS6ObhAS9xh27 6flB6SGL1uBOxt+xgWP+KqTf33i8LP032GZp9qEC9YziK0Ud65RQvEViq0g+rSUC/Do7BcTPmL1kV 1oY8REtCMNxzvWSYBPcA8HC8ar8LfmrBxMekadVuUA8sCPajzE5r1T13WexlYRl2vXp/HoRPEysYc p6IpcAegVPfUZSdFS3XZXvfUh9mL3TB1GrDn9JPECuMDyPvgskFKn+R3EJawZIJxKIdjyV0KXyXlW 5ha2VvCcNxb8Hnv9SIUg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.89 #1 (Red Hat Linux)) id 1etiyC-0000Dn-01; Wed, 07 Mar 2018 23:59:40 +0000 Received: from mail-pl0-x244.google.com ([2607:f8b0:400e:c01::244]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1etiwV-0007eZ-5a for linux-arm-kernel@lists.infradead.org; Wed, 07 Mar 2018 23:58:01 +0000 Received: by mail-pl0-x244.google.com with SMTP id c11-v6so2317555plo.0 for ; Wed, 07 Mar 2018 15:57:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; h=subject:date:message-id:in-reply-to:references:cc:from:to; bh=efbfdj+AhtVY7m9fGzgePNp0sq5ACJNqk20N9M/+02k=; b=Mk1bTVDSOvHNbI5JjswXcunRAmiMQ16+Z7q0x+no0mBo4ZGPjp6cvKPWcjWTckPFHl ugkPotz8R/r/jJJFxJwUrlDFwZ6k6C2fKCIAhCxFsDjDIX+K1bTIdgotq+ZSwtgPp+pN HWMPX6uAxX5Xo7BOZoq4fNSeYfKLnRJHuQ3Ip2XZ+jvlQd/QwiLH3Q04gsGhN/NXl4Gs JzNP5nKW9BSwBvTlzotSYoVSPy1HoQT8LSFppiDpRCo34iOcZEjiMOyLd1AaViA5r3Kt GbFmObCpJMi+/Gu94GzOiczoYUQ03mtyxJBexr+bGA1KOH5JWj1KsXQ9oLQhNq0g78CV 500g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:date:message-id:in-reply-to:references :cc:from:to; bh=efbfdj+AhtVY7m9fGzgePNp0sq5ACJNqk20N9M/+02k=; b=DIS0N/HFkMPuPDMy+knHcOP6XR7YUEcTB5As6/KLYgz1wYCzsOhmPRN8JTpP/mrZZ3 f/rDiUlY6nIwNSNSvEHnV3VSk5cmmIP6HcbnvYAfLZtmTD3j7Vv1YayWO/dkc4485R1b p1BIWo7oOzL3zVYa/WyjTR5g2IJOJX4Kr4b1suacZKwq/DpqLNLvQ83EAygtAGrxfbTu 1d/RK+BYioR0AXkxo7IKSCNpyyZjUSxLnOuU8D3tNCuw9QVN/xtRdLOkVHff6lzNl/CE QFzZsstrAsL5B/R26Py4yxsv0t0me6rSUZwlK+2WH+sKN0ia/V3Gw7oquSCUed+NEZmb DfmQ== X-Gm-Message-State: APf1xPBi7Q+ZMcXmjoyzTAuY8pmuRRRL/xI9EudM5dU4fhD1w1rlQ8m1 uj/LJ2Dd9raYYo74SJCbA50YRg== X-Google-Smtp-Source: AG47ELtL+cNHNJY32pNd+r9r8U0RkT9LXZow4W58P50/tQLP++MfjMXQKxtXdTBqQFohGCkABRKJxw== X-Received: by 2002:a17:902:8c83:: with SMTP id t3-v6mr22521913plo.310.1520467065768; Wed, 07 Mar 2018 15:57:45 -0800 (PST) Received: from localhost ([12.206.222.5]) by smtp.gmail.com with ESMTPSA id o3sm29959478pgp.18.2018.03.07.15.57.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 07 Mar 2018 15:57:45 -0800 (PST) Subject: [PATCH v3 5/5] openrisc: Use the new GENERIC_IRQ_MULTI_HANDLER Date: Wed, 7 Mar 2018 15:57:31 -0800 Message-Id: <20180307235731.22627-6-palmer@sifive.com> X-Mailer: git-send-email 2.16.1 In-Reply-To: <20180307235731.22627-1-palmer@sifive.com> References: <20180307235731.22627-1-palmer@sifive.com> From: Palmer Dabbelt To: linux@armlinux.org.uk, catalin.marinas@arm.com, Will Deacon , jonas@southpole.se, stefan.kristiansson@saunalahti.fi, shorne@gmail.com, tglx@linutronix.de, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, openrisc@lists.librecores.org, linux-riscv@lists.infradead.org X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180307_155755_841553_0A30EF12 X-CRM114-Status: GOOD ( 15.55 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Palmer Dabbelt MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP It appears that openrisc copied arm64's GENERIC_IRQ_MULTI_HANDLER code (which came from arm). I wanted to make this generic so I could use it in the RISC-V port. This patch converts the openrisc code to use the generic version. Acked-by: Stafford Horne Signed-off-by: Palmer Dabbelt --- arch/openrisc/Kconfig | 1 + arch/openrisc/kernel/irq.c | 7 ------- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/arch/openrisc/Kconfig b/arch/openrisc/Kconfig index 339df7324e9c..dfb6a79ba7ff 100644 --- a/arch/openrisc/Kconfig +++ b/arch/openrisc/Kconfig @@ -35,6 +35,7 @@ config OPENRISC select ARCH_USE_QUEUED_RWLOCKS select OMPIC if SMP select ARCH_WANT_FRAME_POINTERS + select GENERIC_IRQ_MULTI_HANDLER config CPU_BIG_ENDIAN def_bool y diff --git a/arch/openrisc/kernel/irq.c b/arch/openrisc/kernel/irq.c index 35e478a93116..5f9445effaf8 100644 --- a/arch/openrisc/kernel/irq.c +++ b/arch/openrisc/kernel/irq.c @@ -41,13 +41,6 @@ void __init init_IRQ(void) irqchip_init(); } -static void (*handle_arch_irq)(struct pt_regs *); - -void __init set_handle_irq(void (*handle_irq)(struct pt_regs *)) -{ - handle_arch_irq = handle_irq; -} - void __irq_entry do_IRQ(struct pt_regs *regs) { handle_arch_irq(regs);