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: 6981381 Return-Path: X-Original-To: patchwork-linux-sh@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 0E365C05AC for ; Mon, 10 Aug 2015 09:56:05 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 31B4A2068E for ; Mon, 10 Aug 2015 09:56:04 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 495C3205B1 for ; Mon, 10 Aug 2015 09:56:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752645AbbHJJzu (ORCPT ); Mon, 10 Aug 2015 05:55:50 -0400 Received: from mail-wi0-f177.google.com ([209.85.212.177]:37482 "EHLO mail-wi0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933478AbbHJJzS (ORCPT ); Mon, 10 Aug 2015 05:55:18 -0400 Received: by wibhh20 with SMTP id hh20so142979270wib.0 for ; Mon, 10 Aug 2015 02:55:16 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=QxNKetT6P0b7NrQmvWxdf6Ybzxg7ywoUPA4r+CupnTw=; b=l8fBNJl5F2r6z3brE/mMBpD/YW+fMTlCX6a1mbqcCaUVyyRw/R5SfEHgjCba3eM7wo 8dYAkmPsDWGBzbpmgM2NYyhSSuzeaJNrtDn1bzKzFeTRoKqzl91xFwqPg6ME3UnP8a31 2p3qM402psqH6TZOU/vH8dwHRojEhjOXLCvUiatrmhpPm3/3SPI0psKwtP3lG0zkLe1D Z7uvGH6a2M6LtOTPfbYPdyhLBfSbzYu18tVSZoBnxiK+N07uydwLeGxOdi8jOWR0has2 OKITcbjbqguudCKbKIrof5r6cXJ9HXLA/6rhWhHXhCgpEMGTqdolDBKhv7yg40DB1Q4D YaLw== X-Gm-Message-State: ALoCoQnhxyZYsL99gVvZRNBVxMJZGshC+1/0ZUaOLCctthNwtEB6pdMkXMDO92rtLEcNydLU2bJo 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-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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);