From patchwork Thu Jul 16 11:26:30 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 51162 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f199.google.com (mail-wi0-f199.google.com [209.85.212.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 8023622A28 for ; Thu, 16 Jul 2015 11:29:19 +0000 (UTC) Received: by wipp2 with SMTP id p2sf3909221wip.2 for ; Thu, 16 Jul 2015 04:29:18 -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=mpjdDDN3BKGXUhqGpuGLhPYjccpMF1vlWYEJ8Tv9w+M=; b=cr1t4fRHOqyeJUXtZR1UQed+yYrfdOv+mbUJ55BDCXaLG5xYZfh5R7BuWH2bUfKmC1 B5iSeHCELmJ5+IqYjagcqGzkb9tICZXhiJv+pYLRZlmhktw/yKLVC32yFnDBI2TK1Can NL7stGZUlGIanBZJjO0QBp0geabNTumKyjH+YGbLsdFnAnqj08AOFa7sGuDPTLjEEEkO k7CbYARWlMIJkkpgQr6SmFnK5U0X1toJiAiM/bjtd4ypLbK5aOeJzLFfmn1rrk5gkRRD Fm2OCJGPyre6CrBId9t5FRy1sYAoIIhanGuyN7+Eutv3jjdS27aZlqyI7Yxp09T04fx8 F/dQ== X-Gm-Message-State: ALoCoQnpqVSubGrIo9yx5rcpVzVfUfjmdRrRY7UUXUuwwkHBTNtzCEO52xVJvwnu5tR1J25a4kEe X-Received: by 10.180.106.10 with SMTP id gq10mr1201606wib.0.1437046158874; Thu, 16 Jul 2015 04:29:18 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.37.105 with SMTP id x9ls357741laj.11.gmail; Thu, 16 Jul 2015 04:29:18 -0700 (PDT) X-Received: by 10.152.87.13 with SMTP id t13mr8983321laz.66.1437046158680; Thu, 16 Jul 2015 04:29:18 -0700 (PDT) Received: from mail-la0-f51.google.com (mail-la0-f51.google.com. [209.85.215.51]) by mx.google.com with ESMTPS id j2si6691276lbd.98.2015.07.16.04.29.18 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 16 Jul 2015 04:29:18 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.51 as permitted sender) client-ip=209.85.215.51; Received: by lagx9 with SMTP id x9so41566398lag.1 for ; Thu, 16 Jul 2015 04:29:18 -0700 (PDT) X-Received: by 10.112.209.106 with SMTP id ml10mr8766103lbc.112.1437046158558; Thu, 16 Jul 2015 04:29:18 -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 hn6csp192060lbb; Thu, 16 Jul 2015 04:29:17 -0700 (PDT) X-Received: by 10.68.237.105 with SMTP id vb9mr17421601pbc.149.1437046156589; Thu, 16 Jul 2015 04:29:16 -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.15; Thu, 16 Jul 2015 04:29:16 -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 S1755415AbbGPL3F (ORCPT + 27 others); Thu, 16 Jul 2015 07:29:05 -0400 Received: from mail-pa0-f41.google.com ([209.85.220.41]:33067 "EHLO mail-pa0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752199AbbGPL3A (ORCPT ); Thu, 16 Jul 2015 07:29:00 -0400 Received: by padck2 with SMTP id ck2so41369516pad.0 for ; Thu, 16 Jul 2015 04:29:00 -0700 (PDT) X-Received: by 10.68.224.35 with SMTP id qz3mr17575479pbc.165.1437046140263; Thu, 16 Jul 2015 04:29:00 -0700 (PDT) Received: from localhost ([122.171.186.190]) by smtp.gmail.com with ESMTPSA id g2sm7709815pdh.11.2015.07.16.04.28.58 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 16 Jul 2015 04:28:59 -0700 (PDT) From: Viresh Kumar To: Thomas Gleixner , Daniel Lezcano Cc: linaro-kernel@lists.linaro.org, linux-kernel@vger.kernel.org, Viresh Kumar , Chris Metcalf , Christoph Lameter , Joe Perches , John Stultz , Peter Zijlstra , Tejun Heo Subject: [PATCH 18/23] tile/time: Migrate to new 'set-state' interface Date: Thu, 16 Jul 2015 16:56:30 +0530 Message-Id: <7eb7fb0311b83bfb605188c130604f7090053eb6.1437044518.git.viresh.kumar@linaro.org> 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.51 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 tile 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. Cc: Chris Metcalf Signed-off-by: Viresh Kumar --- arch/tile/kernel/time.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/arch/tile/kernel/time.c b/arch/tile/kernel/time.c index 00178ecf9aea..178989e6d3e3 100644 --- a/arch/tile/kernel/time.c +++ b/arch/tile/kernel/time.c @@ -140,10 +140,10 @@ static int tile_timer_set_next_event(unsigned long ticks, * Whenever anyone tries to change modes, we just mask interrupts * and wait for the next event to get set. */ -static void tile_timer_set_mode(enum clock_event_mode mode, - struct clock_event_device *evt) +static int tile_timer_shutdown(struct clock_event_device *evt) { arch_local_irq_mask_now(INT_TILE_TIMER); + return 0; } /* @@ -157,7 +157,9 @@ static DEFINE_PER_CPU(struct clock_event_device, tile_timer) = { .rating = 100, .irq = -1, .set_next_event = tile_timer_set_next_event, - .set_mode = tile_timer_set_mode, + .set_state_shutdown = tile_timer_shutdown, + .set_state_oneshot = tile_timer_shutdown, + .tick_resume = tile_timer_shutdown, }; void setup_tile_timer(void)