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: 6806371 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 2F917C05AC for ; Thu, 16 Jul 2015 11:30:56 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 4916D20701 for ; Thu, 16 Jul 2015 11:30:55 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 5A667206D4 for ; Thu, 16 Jul 2015 11:30:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755343AbbGPL2r (ORCPT ); Thu, 16 Jul 2015 07:28:47 -0400 Received: from mail-pa0-f49.google.com ([209.85.220.49]:36233 "EHLO mail-pa0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932279AbbGPL2p (ORCPT ); Thu, 16 Jul 2015 07:28:45 -0400 Received: by pachj5 with SMTP id hj5so41556042pac.3 for ; Thu, 16 Jul 2015 04:28:45 -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:in-reply-to:references; bh=mAVhReur53MOqskcQ8LUSm1cKToHCBFqN5U4yLm9hdQ=; b=fltKA+gyjLZR32embMl4jdDWTqtoJ+vEN7NUiCzH5GcxEAQ1j9dmuGNw9Ij3wP7aA8 Nd/wQDqsOQiXaDV4hau6efH7D9RmTyJpclMujLoOirJquR8I/3lL0/a0Sy7P/BRFsxrU z0hzE7sFKwslMerc3Mht5vpvxImDyU8JhQQeqeTDjOz74A+ea4qAz9RUod+yOxJFMW3t chWZHN3uEidfAXTPnJSj6Gc2FiOvHvtWBc6mCKAcWrhDhVBDNaZChlWlxTzpvcySuQiE Xro3NKvC5sFUIZ/b3P16KaO830u93d7ftp5eT6MhNdkecVbAt6+RscOi3CNQS3Eyh4Z1 FSyg== X-Gm-Message-State: ALoCoQnnWDVm2MjKIB0H55eBuuabKhLkjWqXQHC+GEZ8cltSZeGXpFFmx5rHAKpt3nXSdusys/qQ 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-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Spam-Status: No, score=-8.2 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 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);