From patchwork Thu Jul 16 11:26:28 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 51160 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wg0-f69.google.com (mail-wg0-f69.google.com [74.125.82.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 981BD22A28 for ; Thu, 16 Jul 2015 11:29:15 +0000 (UTC) Received: by wgjx7 with SMTP id x7sf18045399wgj.3 for ; Thu, 16 Jul 2015 04:29:14 -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: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=yZ+WP6E7ekJCx9j7WawmzuhcPnOqjOuur0J8q4l5Tyo=; b=IPGiGVDO54tYN7ymga8MMBnHHEHknyMmnhVXBpGhMwv0R25f2EN4Narj+gR/VEWHA9 /i4U9d3LnmS+6JNpCJNXF6WT1Vv/Wbn6nOT78N3wPCmgaGZadp5jQTHQecqj/uo2GA11 wOIR//3NwOBa0y9HPk2AqiTrHAm0jjPyaeO/P9ne9hGvcCz6Ju6NVEbAIai608PWOMfi w9CnkBBErhi0OkGPG+YcQcj5c33XMex07WfYSOKUif1Vd3678f5THaofBRMoun3cWQum 8JAGgx7Ba5wAQIyT9nxZIdD1zJu+Vl4thNSVkyNMDc3NxVz+tF3ko4pig4sxk+P/keeB 4lzg== X-Gm-Message-State: ALoCoQnbEmhJjLz75mAmT3jcKFPd8Z5esuEzCeg7JAOhZICZSBW8xwsvKgd7pwdapYIfW9iAICHp X-Received: by 10.112.42.236 with SMTP id r12mr4615179lbl.2.1437046154581; Thu, 16 Jul 2015 04:29:14 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.43.18 with SMTP id s18ls349921lal.63.gmail; Thu, 16 Jul 2015 04:29:14 -0700 (PDT) X-Received: by 10.152.21.37 with SMTP id s5mr8726062lae.2.1437046154273; Thu, 16 Jul 2015 04:29:14 -0700 (PDT) Received: from mail-la0-f42.google.com (mail-la0-f42.google.com. [209.85.215.42]) by mx.google.com with ESMTPS id lc3si6699235lab.50.2015.07.16.04.29.13 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 16 Jul 2015 04:29:13 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.42 as permitted sender) client-ip=209.85.215.42; Received: by lagw2 with SMTP id w2so41574145lag.3 for ; Thu, 16 Jul 2015 04:29:13 -0700 (PDT) X-Received: by 10.112.166.2 with SMTP id zc2mr8897422lbb.29.1437046153839; Thu, 16 Jul 2015 04:29:13 -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.108.230 with SMTP id hn6csp192018lbb; Thu, 16 Jul 2015 04:29:12 -0700 (PDT) X-Received: by 10.68.69.69 with SMTP id c5mr17960304pbu.160.1437046152130; Thu, 16 Jul 2015 04:29:12 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w10si12507253pas.189.2015.07.16.04.29.10; Thu, 16 Jul 2015 04:29:12 -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; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755375AbbGPL2t (ORCPT + 27 others); Thu, 16 Jul 2015 07:28:49 -0400 Received: from mail-pd0-f175.google.com ([209.85.192.175]:35675 "EHLO mail-pd0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932280AbbGPL2p (ORCPT ); Thu, 16 Jul 2015 07:28:45 -0400 Received: by pdrg1 with SMTP id g1so42886864pdr.2 for ; Thu, 16 Jul 2015 04:28:45 -0700 (PDT) X-Received: by 10.67.29.175 with SMTP id jx15mr17503189pad.99.1437046125015; Thu, 16 Jul 2015 04:28:45 -0700 (PDT) Received: from localhost ([122.171.186.190]) by smtp.gmail.com with ESMTPSA id ze3sm7681210pbb.32.2015.07.16.04.28.43 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 16 Jul 2015 04:28:44 -0700 (PDT) From: Viresh Kumar To: Thomas Gleixner , Daniel Lezcano Cc: linaro-kernel@lists.linaro.org, linux-kernel@vger.kernel.org, Viresh Kumar , linux-sh@vger.kernel.org Subject: [PATCH 16/23] sh/localtimer: Migrate to new 'set-state' interface Date: Thu, 16 Jul 2015 16:56:28 +0530 Message-Id: X-Mailer: git-send-email 2.4.0 In-Reply-To: References: In-Reply-To: References: 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: viresh.kumar@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.215.42 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: , Migrate sh driver to the new 'set-state' interface provided by clockevents core, the earlier 'set-mode' interface is marked obsolete now. This also enables us to implement callbacks for new states of clockevent devices, for example: ONESHOT_STOPPED. We weren't doing anything in the ->set_mode() callback. So, this patch doesn't provide any set-state callbacks. Cc: linux-sh@vger.kernel.org Signed-off-by: Viresh Kumar --- arch/sh/kernel/localtimer.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/arch/sh/kernel/localtimer.c b/arch/sh/kernel/localtimer.c index b880a7e2ace7..cbb7d4636ec0 100644 --- a/arch/sh/kernel/localtimer.c +++ b/arch/sh/kernel/localtimer.c @@ -39,11 +39,6 @@ void local_timer_interrupt(void) irq_exit(); } -static void dummy_timer_set_mode(enum clock_event_mode mode, - struct clock_event_device *clk) -{ -} - void local_timer_setup(unsigned int cpu) { struct clock_event_device *clk = &per_cpu(local_clockevent, cpu); @@ -54,7 +49,6 @@ void local_timer_setup(unsigned int cpu) CLOCK_EVT_FEAT_DUMMY; clk->rating = 400; clk->mult = 1; - clk->set_mode = dummy_timer_set_mode; clk->broadcast = smp_timer_broadcast; clk->cpumask = cpumask_of(cpu);