From patchwork Thu Jul 16 11:26:19 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 51154 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f197.google.com (mail-wi0-f197.google.com [209.85.212.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 5031B22A28 for ; Thu, 16 Jul 2015 11:27:58 +0000 (UTC) Received: by wizo10 with SMTP id o10sf3922556wiz.0 for ; Thu, 16 Jul 2015 04:27:57 -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=mWkpSfY0liKls58m+3c6ujAAhJzydUy5ATbimvFpBqQ=; b=MnnDqO0TJxOtBEfXgXsyl3HG4qYtULjVpRvw2zWMPY9sKG1HvByZMt+E1ilkOBOUKQ 0aMcgQXHFEp/QCf+g4gmh2fw9scQFGQcuF7+LgQ/UDhli7L6M9bkniKAzXNzMpfFFqPy nVX0tPUZy0ODsakYv/sEkaGRgT7PLOFAylvTqV52mC3vd4bgA8R08InJUYmqIvUGiFNU FrmZivRYfrV93en7zZCVQ79tqn/Dy9fGWtlJrIFsiCbkvB29mvm7ml9qF+lsk3sgFBdM v+zWaBp8gpS4LsrsT3O5EAJO0QjsSkX41lZ4022IxvEjsvBU+GyviDVbTjte1eeAPio+ GY3g== X-Gm-Message-State: ALoCoQmsRiLMh3yqy2xEu+6hKpjomYPFzCMQ1wMrNAb9YWZ1k9+00PdywYUvuaUGzB5gHpTM9xb2 X-Received: by 10.194.175.36 with SMTP id bx4mr4650889wjc.1.1437046077667; Thu, 16 Jul 2015 04:27:57 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.7.146 with SMTP id j18ls335531laa.44.gmail; Thu, 16 Jul 2015 04:27:57 -0700 (PDT) X-Received: by 10.152.23.167 with SMTP id n7mr8893833laf.108.1437046077371; Thu, 16 Jul 2015 04:27:57 -0700 (PDT) Received: from mail-lb0-f173.google.com (mail-lb0-f173.google.com. [209.85.217.173]) by mx.google.com with ESMTPS id xt11si171421lac.76.2015.07.16.04.27.57 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 16 Jul 2015 04:27:57 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.173 as permitted sender) client-ip=209.85.217.173; Received: by lbbyj8 with SMTP id yj8so41802981lbb.0 for ; Thu, 16 Jul 2015 04:27:57 -0700 (PDT) X-Received: by 10.112.133.72 with SMTP id pa8mr8833802lbb.117.1437046077272; Thu, 16 Jul 2015 04:27:57 -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 hn6csp191422lbb; Thu, 16 Jul 2015 04:27:56 -0700 (PDT) X-Received: by 10.70.6.161 with SMTP id c1mr17626794pda.76.1437046075455; Thu, 16 Jul 2015 04:27:55 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id hn9si12550120pdb.133.2015.07.16.04.27.54; Thu, 16 Jul 2015 04:27:55 -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 S932158AbbGPL1m (ORCPT + 27 others); Thu, 16 Jul 2015 07:27:42 -0400 Received: from mail-pa0-f47.google.com ([209.85.220.47]:33399 "EHLO mail-pa0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932087AbbGPL1j (ORCPT ); Thu, 16 Jul 2015 07:27:39 -0400 Received: by padck2 with SMTP id ck2so41353936pad.0 for ; Thu, 16 Jul 2015 04:27:39 -0700 (PDT) X-Received: by 10.67.30.102 with SMTP id kd6mr17676500pad.132.1437046059409; Thu, 16 Jul 2015 04:27:39 -0700 (PDT) Received: from localhost ([122.171.186.190]) by smtp.gmail.com with ESMTPSA id qt4sm7631457pbc.86.2015.07.16.04.27.37 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 16 Jul 2015 04:27:38 -0700 (PDT) From: Viresh Kumar To: Thomas Gleixner , Daniel Lezcano Cc: linaro-kernel@lists.linaro.org, linux-kernel@vger.kernel.org, Viresh Kumar , Richard Kuo , linux-hexagon@vger.kernel.org Subject: [PATCH 07/23] hexagon/time: Migrate to new 'set-state' interface Date: Thu, 16 Jul 2015 16:56:19 +0530 Message-Id: <519cb907e596d13b9f1e3fd1ee689acbbbeb56c7.1437044517.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.217.173 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 hexagon 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: Richard Kuo Cc: linux-hexagon@vger.kernel.org Signed-off-by: Viresh Kumar --- arch/hexagon/kernel/time.c | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/arch/hexagon/kernel/time.c b/arch/hexagon/kernel/time.c index 17fbf45bf150..a6a1d1f8309a 100644 --- a/arch/hexagon/kernel/time.c +++ b/arch/hexagon/kernel/time.c @@ -97,20 +97,6 @@ static int set_next_event(unsigned long delta, struct clock_event_device *evt) return 0; } -/* - * Sets the mode (periodic, shutdown, oneshot, etc) of a timer. - */ -static void set_mode(enum clock_event_mode mode, - struct clock_event_device *evt) -{ - switch (mode) { - case CLOCK_EVT_MODE_SHUTDOWN: - /* XXX implement me */ - default: - break; - } -} - #ifdef CONFIG_SMP /* Broadcast mechanism */ static void broadcast(const struct cpumask *mask) @@ -119,13 +105,13 @@ static void broadcast(const struct cpumask *mask) } #endif +/* XXX Implement set_state_shutdown() */ static struct clock_event_device hexagon_clockevent_dev = { .name = "clockevent", .features = CLOCK_EVT_FEAT_ONESHOT, .rating = 400, .irq = RTOS_TIMER_INT, .set_next_event = set_next_event, - .set_mode = set_mode, #ifdef CONFIG_SMP .broadcast = broadcast, #endif @@ -146,7 +132,6 @@ void setup_percpu_clockdev(void) dummy_clock_dev->features = CLOCK_EVT_FEAT_DUMMY; dummy_clock_dev->cpumask = cpumask_of(cpu); - dummy_clock_dev->mode = CLOCK_EVT_MODE_UNUSED; clockevents_register_device(dummy_clock_dev); }