From patchwork Mon Mar 30 20:17:06 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 46543 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wg0-f70.google.com (mail-wg0-f70.google.com [74.125.82.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 0EF9C218BF for ; Mon, 30 Mar 2015 20:17:43 +0000 (UTC) Received: by wgtj4 with SMTP id j4sf14101988wgt.0 for ; Mon, 30 Mar 2015 13:17:42 -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=cWKUej0VLciLxlUWrQU6RyAQanRSW3CvNSr5PBbEoQ4=; b=EgM864gyRTh+6y1zZk3bU3U+oYURIr+x1MDOpnz+70jlNaZiNj/UFGzOOgokbKaBeC /mGVicm6fTWJLoRcVwbNHdRNX4XM4TxqDL6lcSwbg0A//icPm9qtcJg/XemXf2EIP4p6 6OAfnJPbR+r6BYrQyEBgZ5xolsHPOySwdmhyS3uWbTcWmVICAjFYvaiiUNXLOyJB5eg6 +8kSizJ/X5FaQWHADnADxjPiLKrOYk06IPPsz4AJjCLV6ZqIzf3Ri1xelytdg3xdy51L o4CWUIkXv00HcCkr4A4NjZUtKJjzeEODDtsQQmXnTZ0WsfFpDKZh6xNPoGUToQ0FURO5 fWXg== X-Gm-Message-State: ALoCoQlTKEH+NhSADykERil1cmdSDCq+eI84bDDd33ONlKyqZRYhrLtxjwzLj+HKRtj9L7DfKXGI X-Received: by 10.152.8.108 with SMTP id q12mr3522983laa.6.1427746662334; Mon, 30 Mar 2015 13:17:42 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.44.136 with SMTP id e8ls678370lam.91.gmail; Mon, 30 Mar 2015 13:17:42 -0700 (PDT) X-Received: by 10.112.44.132 with SMTP id e4mr28298102lbm.66.1427746662157; Mon, 30 Mar 2015 13:17:42 -0700 (PDT) Received: from mail-lb0-f169.google.com (mail-lb0-f169.google.com. [209.85.217.169]) by mx.google.com with ESMTPS id i6si7733595lbc.75.2015.03.30.13.17.42 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 30 Mar 2015 13:17:42 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.169 as permitted sender) client-ip=209.85.217.169; Received: by lboc7 with SMTP id c7so46449765lbo.1 for ; Mon, 30 Mar 2015 13:17:42 -0700 (PDT) X-Received: by 10.152.29.68 with SMTP id i4mr28220711lah.19.1427746662052; Mon, 30 Mar 2015 13:17:42 -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.112.57.201 with SMTP id k9csp1367992lbq; Mon, 30 Mar 2015 13:17:41 -0700 (PDT) X-Received: by 10.68.221.102 with SMTP id qd6mr30031044pbc.119.1427746660148; Mon, 30 Mar 2015 13:17:40 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id cz8si16204940pdb.85.2015.03.30.13.17.38; Mon, 30 Mar 2015 13:17:40 -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 S1753153AbbC3URa (ORCPT + 27 others); Mon, 30 Mar 2015 16:17:30 -0400 Received: from mail-wi0-f182.google.com ([209.85.212.182]:32953 "EHLO mail-wi0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754491AbbC3URY (ORCPT ); Mon, 30 Mar 2015 16:17:24 -0400 Received: by wixm2 with SMTP id m2so95357909wix.0 for ; Mon, 30 Mar 2015 13:17:23 -0700 (PDT) X-Received: by 10.180.96.197 with SMTP id du5mr26561041wib.68.1427746643483; Mon, 30 Mar 2015 13:17:23 -0700 (PDT) Received: from mai.lan (135-224-190-109.dsl.ovh.fr. [109.190.224.135]) by mx.google.com with ESMTPSA id ha10sm17205957wjc.37.2015.03.30.13.17.21 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 30 Mar 2015 13:17:22 -0700 (PDT) From: Daniel Lezcano To: tglx@linutronix.de, mingo@kernel.org Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, maxime.ripard@free-electrons.com, viresh.kumar@linaro.org, ben.dooks@codethink.co.uk, digetx@gmail.com, hdegoede@redhat.com, laurent.pinchart+renesas@ideasonboard.com Subject: [PATCH 04/11] clocksource: sun5i: Remove sched_clock Date: Mon, 30 Mar 2015 22:17:06 +0200 Message-Id: <1427746633-9137-4-git-send-email-daniel.lezcano@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1427746633-9137-1-git-send-email-daniel.lezcano@linaro.org> References: <5519AEB2.8050306@linaro.org> <1427746633-9137-1-git-send-email-daniel.lezcano@linaro.org> 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: daniel.lezcano@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.169 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: , From: Maxime Ripard It's not possible to remove a sched_clock once it has been added, nor is it possible to change its rate. Since we will need to support a rate change, and that we have other sched_clocks in the system anyway, remove it. Signed-off-by: Maxime Ripard Signed-off-by: Daniel Lezcano --- drivers/clocksource/timer-sun5i.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/drivers/clocksource/timer-sun5i.c b/drivers/clocksource/timer-sun5i.c index 6b08694..623ff9e 100644 --- a/drivers/clocksource/timer-sun5i.c +++ b/drivers/clocksource/timer-sun5i.c @@ -130,11 +130,6 @@ static irqreturn_t sun5i_timer_interrupt(int irq, void *dev_id) return IRQ_HANDLED; } -static u64 sun5i_timer_sched_read(void) -{ - return ~readl(timer_base + TIMER_CNTVAL_LO_REG(1)); -} - static void __init sun5i_timer_init(struct device_node *node) { struct reset_control *rstc; @@ -166,7 +161,6 @@ static void __init sun5i_timer_init(struct device_node *node) writel(TIMER_CTL_ENABLE | TIMER_CTL_RELOAD, timer_base + TIMER_CTL_REG(1)); - sched_clock_register(sun5i_timer_sched_read, 32, rate); clocksource_mmio_init(timer_base + TIMER_CNTVAL_LO_REG(1), node->name, rate, 340, 32, clocksource_mmio_readl_down);