Received: by 10.213.65.68 with SMTP id h4csp1236595imn; Wed, 14 Mar 2018 13:52:32 -0700 (PDT) X-Google-Smtp-Source: AG47ELtgtQcU63Pva9OlxwkRjM7McBvYuGGwg+59nMXvN5v+CADBdB1d1qkI/K56Oal5CmlPYcn9 X-Received: by 10.99.95.78 with SMTP id t75mr2446091pgb.330.1521060752020; Wed, 14 Mar 2018 13:52:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521060751; cv=none; d=google.com; s=arc-20160816; b=Lx/eP7vuKcdeMWhB4wDKOj4i8Jf7RRM8L6QRjvLVENxmXaxmRAbBCL6dCPtLTpSQOV rX7DMQeOXRpkrawlSENi6M32I3CPoKdwYwTZxcN4CtlGqrca2yXTkWXHteFf3wrnUXtW QLI1zIhQNUj/s8jMd1rnBO//X99beXoqeRVzBj1ZydHsV43AatmoE4waDQuSYrZ/jIqM lul3Nhq5jULLzCJn/W9lb+Fhh4catn/Yy9VVPbw7T5KTIv5pbZLnAxFBfH3Ln7pKztCH opY+0hzaOrDwXuxYhzDmi6Hr18u60Uofep8GTmo9ekHo7NqsByzAxEe1aPNG5e4iqRZc vDBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition :content-transfer-encoding:mime-version:robot-unsubscribe:robot-id :git-commit-id:subject:to:references:in-reply-to:reply-to:cc :message-id:from:date:arc-authentication-results; bh=d4csZ6hY/vioXV3tJinAsnIL1yL3hmmv77SfQMXAF64=; b=KCqG/Qu2uixjeitZNkSwyez8e90by7KHs00eBC5sxRcw5d1P/7+6LlnaR07y72TbuP NwTgqJGVteeumfuUgqC/q0yuP5wQDLJNL9VLT4AegRdQd1YLHedsZl8iEzIjOoKHuUtg BBrzoweeB2Zt5JpOE8UQ3NWjFk96wWqskM/qFWz9l6VD+WcpdlNPkv9xanVG6fVPf6qw N6WB9sP6vmXVM7ZSPfrL7C1ihG6IUgar+/XCwg51RzHjaqzpoU9TGMdEvgthTlCCCd+y hGUx5hDAnbGSPyIj2p86+xiQ9VXHq9ktSCFQ/7TGkbhb1Xc6II2xsBLTZgcGBBZnElzj EZSg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i20si2360153pgn.711.2018.03.14.13.52.17; Wed, 14 Mar 2018 13:52:31 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751971AbeCNUvH (ORCPT + 99 others); Wed, 14 Mar 2018 16:51:07 -0400 Received: from terminus.zytor.com ([198.137.202.136]:58857 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751405AbeCNUvG (ORCPT ); Wed, 14 Mar 2018 16:51:06 -0400 Received: from terminus.zytor.com (localhost [127.0.0.1]) by terminus.zytor.com (8.15.2/8.15.2) with ESMTP id w2EKoxUS026864; Wed, 14 Mar 2018 13:50:59 -0700 Received: (from tipbot@localhost) by terminus.zytor.com (8.15.2/8.15.2/Submit) id w2EKow8P026861; Wed, 14 Mar 2018 13:50:58 -0700 Date: Wed, 14 Mar 2018 13:50:58 -0700 X-Authentication-Warning: terminus.zytor.com: tipbot set sender to tipbot@zytor.com using -f From: tip-bot for Palmer Dabbelt Message-ID: Cc: palmer@sifive.com, shorne@gmail.com, hpa@zytor.com, linux-kernel@vger.kernel.org, mingo@kernel.org, tglx@linutronix.de Reply-To: tglx@linutronix.de, mingo@kernel.org, linux-kernel@vger.kernel.org, hpa@zytor.com, shorne@gmail.com, palmer@sifive.com In-Reply-To: <20180312184429.20515-1-palmer@sifive.com> References: <20180312184429.20515-1-palmer@sifive.com> To: linux-tip-commits@vger.kernel.org Subject: [tip:irq/core] openrisc: Use the new GENERIC_IRQ_MULTI_HANDLER Git-Commit-ID: d9af5838180359c6be1c07989c91b28eee93d7e7 X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on terminus.zytor.com Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: d9af5838180359c6be1c07989c91b28eee93d7e7 Gitweb: https://git.kernel.org/tip/d9af5838180359c6be1c07989c91b28eee93d7e7 Author: Palmer Dabbelt AuthorDate: Mon, 12 Mar 2018 11:44:29 -0700 Committer: Thomas Gleixner CommitDate: Wed, 14 Mar 2018 21:46:30 +0100 openrisc: Use the new GENERIC_IRQ_MULTI_HANDLER It appears that openrisc copied arm64's irq multi handler code (which came from arm). Convert it to use the generic version. Signed-off-by: Palmer Dabbelt Signed-off-by: Thomas Gleixner Acked-by: Stafford Horne Cc: jonas@southpole.se Cc: stefan.kristiansson@saunalahti.fi Cc: openrisc@lists.librecores.org Link: https://lkml.kernel.org/r/20180312184429.20515-1-palmer@sifive.com --- arch/openrisc/Kconfig | 1 + arch/openrisc/include/asm/irq.h | 2 -- arch/openrisc/kernel/irq.c | 7 ------- 3 files changed, 1 insertion(+), 9 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/include/asm/irq.h b/arch/openrisc/include/asm/irq.h index d9eee0a2b7b4..eb612b1865d2 100644 --- a/arch/openrisc/include/asm/irq.h +++ b/arch/openrisc/include/asm/irq.h @@ -24,6 +24,4 @@ #define NO_IRQ (-1) -extern void set_handle_irq(void (*handle_irq)(struct pt_regs *)); - #endif /* __ASM_OPENRISC_IRQ_H__ */ 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);