From patchwork Fri Jun 12 08:00:14 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 49805 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f199.google.com (mail-lb0-f199.google.com [209.85.217.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 34812228DB for ; Fri, 12 Jun 2015 08:01:07 +0000 (UTC) Received: by lbcak1 with SMTP id ak1sf7706323lbc.2 for ; Fri, 12 Jun 2015 01:01:06 -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=LbV8YGKEteGsBYIoSYYFGNt6PjtDXnWfdffKC002zR8=; b=K5pQadh0CaDbF7mFncCwrUIJ/OkI5ArcNXiQ7pyLizWSI2rGhdE42L37ku0+vt8Wye CvBhbAU2dYlO/iXQfisrBJ9T1qRhpH22jSgRN79PLJZPEXSOa5bkGHCEoTaYuxVYZWqr wzrbz3lzks7bj0mnnFGBPv2Gh7N9izFM8mQMcLAqT0513jvb7AZahZJ3V0fRRjf5rm1B iudh5VDKvl0qKMhd/T66GhBQSsVTmeHpWskRhEuWvG8HITlzWtllA+GaBtWBD7u2veon 4RrujJzKE4jSTlJ4pjUedECyukU5jwJwwA6AybK/AttHn2brmYgArp6CQfb/R7/VF9r4 hocQ== X-Gm-Message-State: ALoCoQmYICmBdP+5tECYqG1Pdoh5PC8pWgRw83g8ounNSxzgMkD/svZ8IZGRgeAgXH68HZRu7iFr X-Received: by 10.180.221.203 with SMTP id qg11mr2746426wic.7.1434096066071; Fri, 12 Jun 2015 01:01:06 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.9.7 with SMTP id v7ls506895laa.75.gmail; Fri, 12 Jun 2015 01:01:05 -0700 (PDT) X-Received: by 10.152.28.73 with SMTP id z9mr13721300lag.93.1434096065881; Fri, 12 Jun 2015 01:01:05 -0700 (PDT) Received: from mail-lb0-f175.google.com (mail-lb0-f175.google.com. [209.85.217.175]) by mx.google.com with ESMTPS id nx8si2728747lbb.161.2015.06.12.01.01.05 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 12 Jun 2015 01:01:05 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.175 as permitted sender) client-ip=209.85.217.175; Received: by lbbtu8 with SMTP id tu8so15520536lbb.2 for ; Fri, 12 Jun 2015 01:01:05 -0700 (PDT) X-Received: by 10.112.41.196 with SMTP id h4mr13886444lbl.36.1434096065778; Fri, 12 Jun 2015 01:01:05 -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 hn6csp361528lbb; Fri, 12 Jun 2015 01:01:04 -0700 (PDT) X-Received: by 10.70.53.99 with SMTP id a3mr21193891pdp.169.1434096059332; Fri, 12 Jun 2015 01:00:59 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id qo6si2497711pac.151.2015.06.12.01.00.58; Fri, 12 Jun 2015 01:00:59 -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 S932073AbbFLIAv (ORCPT + 29 others); Fri, 12 Jun 2015 04:00:51 -0400 Received: from mail-pa0-f53.google.com ([209.85.220.53]:34280 "EHLO mail-pa0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754716AbbFLIAr (ORCPT ); Fri, 12 Jun 2015 04:00:47 -0400 Received: by payr10 with SMTP id r10so18430286pay.1 for ; Fri, 12 Jun 2015 01:00:46 -0700 (PDT) X-Received: by 10.68.98.133 with SMTP id ei5mr21264539pbb.51.1434096046842; Fri, 12 Jun 2015 01:00:46 -0700 (PDT) Received: from localhost ([122.167.70.98]) by mx.google.com with ESMTPSA id jz10sm2758035pbc.48.2015.06.12.01.00.45 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 12 Jun 2015 01:00:46 -0700 (PDT) From: Viresh Kumar To: Thomas Gleixner , Daniel Lezcano Cc: linaro-kernel@lists.linaro.org, linux-kernel@vger.kernel.org, Viresh Kumar , Stephen Warren , Lee Jones Subject: [PATCH V2 4/7] clocksource: bcm2835: Migrate to new 'set-state' interface Date: Fri, 12 Jun 2015 13:30:14 +0530 Message-Id: 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.175 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 bcm2835 driver to the new 'set-state' interface provided by the 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. Acked-by: Daniel Lezcano Cc: Stephen Warren Cc: Lee Jones Signed-off-by: Viresh Kumar --- drivers/clocksource/bcm2835_timer.c | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/drivers/clocksource/bcm2835_timer.c b/drivers/clocksource/bcm2835_timer.c index 26ed331b1aad..6f2822928963 100644 --- a/drivers/clocksource/bcm2835_timer.c +++ b/drivers/clocksource/bcm2835_timer.c @@ -54,21 +54,6 @@ static u64 notrace bcm2835_sched_read(void) return readl_relaxed(system_clock); } -static void bcm2835_time_set_mode(enum clock_event_mode mode, - struct clock_event_device *evt_dev) -{ - switch (mode) { - case CLOCK_EVT_MODE_ONESHOT: - case CLOCK_EVT_MODE_UNUSED: - case CLOCK_EVT_MODE_SHUTDOWN: - case CLOCK_EVT_MODE_RESUME: - break; - default: - WARN(1, "%s: unhandled event mode %d\n", __func__, mode); - break; - } -} - static int bcm2835_time_set_next_event(unsigned long event, struct clock_event_device *evt_dev) { @@ -129,7 +114,6 @@ static void __init bcm2835_timer_init(struct device_node *node) timer->evt.name = node->name; timer->evt.rating = 300; timer->evt.features = CLOCK_EVT_FEAT_ONESHOT; - timer->evt.set_mode = bcm2835_time_set_mode; timer->evt.set_next_event = bcm2835_time_set_next_event; timer->evt.cpumask = cpumask_of(0); timer->act.name = node->name;