From patchwork Mon Aug 10 09:52:25 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 52166 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f197.google.com (mail-lb0-f197.google.com [209.85.217.197]) by patches.linaro.org (Postfix) with ESMTPS id 73A962152A for ; Mon, 10 Aug 2015 09:56:08 +0000 (UTC) Received: by lbsm2 with SMTP id m2sf23809813lbs.1 for ; Mon, 10 Aug 2015 02:56:07 -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=45hl3OACRbR1igtEMujvgeBKLESco/vvJlK54dgirD4=; b=FUbiyECxJt2msi/QDQgIGwRzOOR8qYtJah2+2dWyXLPzWaOstt4XVP3HoDMt3ZQQBP X5SS1Po7KObv3ItuLutfSlcJ9BgKC08N1aP9bq1NG2HW/rSudo9LRurDmJ3JhfSKYemb q4qqEMqoDTuTYh8EHsWReOGCZp1hbaoWV1x91SXzj/NWyPUIyh4Kd/CRDNu/4a2Hs8ke rJbv4k3ptfUZDBvEYRUlUTl1smSKNagMivVt3Z5XikexNjggAFJ7ENEFnp6/0xmrSm1N XP7/slMsSBB0K9WtqYl6jZ+htAG31Fq7PO0PNL/8VdhvGUSuLUg2CVDb0Al97ufm/NkW 2IlQ== X-Gm-Message-State: ALoCoQkSrcaDWicmjCwF6h1cYw+hAhEIWdEt8g9rrgOoESJBdISQzfr6zXprsY/miL846nF1l+5b X-Received: by 10.194.80.69 with SMTP id p5mr6085445wjx.2.1439200567454; Mon, 10 Aug 2015 02:56:07 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.45.73 with SMTP id k9ls664890lam.66.gmail; Mon, 10 Aug 2015 02:56:07 -0700 (PDT) X-Received: by 10.152.181.5 with SMTP id ds5mr19180848lac.60.1439200567261; Mon, 10 Aug 2015 02:56:07 -0700 (PDT) Received: from mail-la0-f47.google.com (mail-la0-f47.google.com. [209.85.215.47]) by mx.google.com with ESMTPS id e10si622030lam.108.2015.08.10.02.56.07 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 10 Aug 2015 02:56:07 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.47 as permitted sender) client-ip=209.85.215.47; Received: by lagz9 with SMTP id z9so50653721lag.3 for ; Mon, 10 Aug 2015 02:56:07 -0700 (PDT) X-Received: by 10.112.67.65 with SMTP id l1mr9151695lbt.86.1439200567124; Mon, 10 Aug 2015 02:56:07 -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.7.198 with SMTP id l6csp1828380lba; Mon, 10 Aug 2015 02:56:05 -0700 (PDT) X-Received: by 10.66.251.202 with SMTP id zm10mr42931620pac.87.1439200565278; Mon, 10 Aug 2015 02:56:05 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ca15si32403360pdb.31.2015.08.10.02.56.04; Mon, 10 Aug 2015 02:56:05 -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 S1754219AbbHJJz4 (ORCPT + 28 others); Mon, 10 Aug 2015 05:55:56 -0400 Received: from mail-wi0-f181.google.com ([209.85.212.181]:35269 "EHLO mail-wi0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933459AbbHJJzR (ORCPT ); Mon, 10 Aug 2015 05:55:17 -0400 Received: by wicne3 with SMTP id ne3so15366668wic.0 for ; Mon, 10 Aug 2015 02:55:16 -0700 (PDT) X-Received: by 10.180.10.8 with SMTP id e8mr21944821wib.22.1439200516515; Mon, 10 Aug 2015 02:55:16 -0700 (PDT) Received: from localhost.localdomain (sju31-1-78-210-255-2.fbx.proxad.net. [78.210.255.2]) by smtp.gmail.com with ESMTPSA id jr5sm28598154wjc.14.2015.08.10.02.55.15 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 10 Aug 2015 02:55:16 -0700 (PDT) From: Daniel Lezcano To: mingo@kernel.org Cc: tglx@linutronix.de, linux-kernel@vger.kernel.org, Viresh Kumar , linux-sh@vger.kernel.org Subject: [PATCH 68/74] sh/localtimer: Migrate to new 'set-state' interface Date: Mon, 10 Aug 2015 11:52:25 +0200 Message-Id: <1439200352-26767-68-git-send-email-daniel.lezcano@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1439200352-26767-1-git-send-email-daniel.lezcano@linaro.org> References: <55C87382.4070309@linaro.org> <1439200352-26767-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.215.47 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: Viresh Kumar 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 Signed-off-by: Daniel Lezcano --- 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 b880a7e..cbb7d46 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);