Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp524091imm; Thu, 26 Jul 2018 07:40:17 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdDWEnTWXNmJKpE0u0s9WdH2JvaImHO6Y9/s2VHyEaIiJsMIwYslCXo4z44m7VSwOus3/x4 X-Received: by 2002:a63:7c5c:: with SMTP id l28-v6mr2279952pgn.352.1532616017590; Thu, 26 Jul 2018 07:40:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532616017; cv=none; d=google.com; s=arc-20160816; b=BSxfSqMr3YN3IQzC8G14xqRB4BYsh6tL2Q1oXFTmPqO8eTLGlhsL3XAQ/kw8TMoO04 LTRAjTphrQRrlQQ7MZ8wZSNwMF269Ikrrb0fnSeIkxRc+CN97srbnqE/J8JH/dn/wC1d h6V5b0Eb+PjYHAhk6YyOsxBv2Z97SHCQd7yM+vOXEfGGwBznTu7kR/sk5xLvyTkGx74N /hwjnUsQBIY9jHV5gC3mNLevPbW33yxUL0ujkiLHKrdAN9d02HwRcXvutlYgNqH/URd8 KKLJRZmjs2BlnfU8PsjfTfDaSFDYozrTcu/8oY5R67SGLmPrX/UQrNHMK8l7ZlSC7DQH n+FA== 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:arc-authentication-results; bh=x+WznFoFquYzZMKHKDtQXuiW8Nghf0FEVyG7kqGigbI=; b=jxgBGwAn1sotl3k4S91JxrXHlufcArJMukSM0huXh6JDGgM8CDNqzjxbPt8mZLQUF+ woitUn13yVFRPwwOU39kn0jL+dJk1lHHobW/PhcMO9lb8yJNBMiJX8fzf9Ok+2LlqXyV 4MNb1/lLVS2z6rUfEzx4418wYbRp1/vrNBZF6UytzRczeiA7D7OTnLbKNOdujz1AObS9 Ydaq7bS4mi+0NhggH0TBYC3TeEVyJi2BgBf3aym+IfL2MEy6o03ejfuzIgsE6lv57jQE mcne6inyhOMC30Wbr/X//g4iH3NHIxulv+8Z71vaDbRx/3fHLHJHTUYz/b8o27POCL+V RT9g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=ZPf1R82c; 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 l11-v6si1314299pgq.174.2018.07.26.07.40.02; Thu, 26 Jul 2018 07:40:17 -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=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=ZPf1R82c; 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 S1731307AbeGZPyq (ORCPT + 99 others); Thu, 26 Jul 2018 11:54:46 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:57300 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729506AbeGZPyp (ORCPT ); Thu, 26 Jul 2018 11:54:45 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=References:In-Reply-To:Message-Id: Date:Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=x+WznFoFquYzZMKHKDtQXuiW8Nghf0FEVyG7kqGigbI=; b=ZPf1R82ct+uMn/haDT6MexUkf /wKCMiYFzwRjwQ4ShEY3CPfEguAf/voGvh80W9lWo8amTl4iWEvCV820XNF2TA85s4Jqs57CXF8cw UI8CmfzyxCwCLgbRI9I1OvVNxT1avEg0C76yz82hz98gqd5OuMgUkTGx0MMRlKgx8LZ83UZtNWwTj dCgEQuAo9lN6p1f5Jkx6+TQU+7T872jclfJmyogbbIiUOKebWkX93xJMzIyq7bAPpayr22pGHjzpJ fg5rwuYJTRjWGF5HZX1y6Ei7fZOi+3y6ZlYrpEtz7G7+JaqfsMJCpQs1Cb5+PU1w79P51PGsw0xiM r7n8vBs7g==; Received: from 213-225-8-157.nat.highway.a1.net ([213.225.8.157] helo=localhost) by bombadil.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1fihOV-0005g4-IK; Thu, 26 Jul 2018 14:37:32 +0000 From: Christoph Hellwig To: tglx@linutronix.de, palmer@sifive.com, jason@lakedaemon.net, marc.zyngier@arm.com, robh+dt@kernel.org, mark.rutland@arm.com Cc: anup@brainfault.org, atish.patra@wdc.com, devicetree@vger.kernel.org, aou@eecs.berkeley.edu, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, shorne@gmail.com Subject: [PATCH 1/9] RISC-V: remove timer leftovers Date: Thu, 26 Jul 2018 16:37:15 +0200 Message-Id: <20180726143723.16585-2-hch@lst.de> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180726143723.16585-1-hch@lst.de> References: <20180726143723.16585-1-hch@lst.de> X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This code is currently unused and will be added back later in a different place with the real interrupt and clocksource support. Signed-off-by: Christoph Hellwig --- arch/riscv/kernel/time.c | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/arch/riscv/kernel/time.c b/arch/riscv/kernel/time.c index 2463fcca719e..0df9b2cbd645 100644 --- a/arch/riscv/kernel/time.c +++ b/arch/riscv/kernel/time.c @@ -13,32 +13,11 @@ */ #include -#include #include - -#ifdef CONFIG_RISCV_TIMER -#include -#endif - #include unsigned long riscv_timebase; -DECLARE_PER_CPU(struct clock_event_device, riscv_clock_event); - -void riscv_timer_interrupt(void) -{ -#ifdef CONFIG_RISCV_TIMER - /* - * FIXME: This needs to be cleaned up along with the rest of the IRQ - * handling cleanup. See irq.c for more details. - */ - struct clock_event_device *evdev = this_cpu_ptr(&riscv_clock_event); - - evdev->event_handler(evdev); -#endif -} - void __init init_clockevent(void) { timer_probe(); -- 2.18.0