From patchwork Thu Jun 18 10:54:25 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 50040 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f69.google.com (mail-la0-f69.google.com [209.85.215.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 2C4F222903 for ; Thu, 18 Jun 2015 11:06:53 +0000 (UTC) Received: by laka10 with SMTP id a10sf20466291lak.2 for ; Thu, 18 Jun 2015 04:06:52 -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=Ed/vvWWC+vplcfaDmhQ1gPd8f1WW5kPoSJTHfPttKEc=; b=TlBQxl3Wcxwm9KF809U0s/qT0i4vQU8i0jbtxgnCEdgqKhTR9vTScK7z+1c5y2PwK2 e9CpA5cJN1OblJPAvrm/rxE5DlwPJHVO4UZQnJ+ADsM42kO6j8I1q7Tn+8M4uVevFr1R zSp2OJsaJ3Df66aK1/LNejjdJQ/vJUoYGlnsEbGxS3q9rKWZ/5v0pCCG9a+jfUmSDTZ1 rzwhSGSpEAxKtlDLE2clxfF0w8mXqguURn1eA02pa7AeYEBc+dr80fZFkuB9A7MReOD8 uSIs3mkZTZeTdwY713XkzTjDzkWwhJpVwPJwf6x1eZuG6c8AqZXoHgNl8pLPzn1G1sAf z4Cg== X-Gm-Message-State: ALoCoQkirUpni88bdjpcNowiO2PHMvWPKxdA2ShPZR4sKPwKIw5JqeoEUMkWP93fWtWsaHLn8eAE X-Received: by 10.152.9.3 with SMTP id v3mr9895310laa.6.1434625612150; Thu, 18 Jun 2015 04:06:52 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.29.169 with SMTP id l9ls447909lah.52.gmail; Thu, 18 Jun 2015 04:06:51 -0700 (PDT) X-Received: by 10.112.168.165 with SMTP id zx5mr12267641lbb.111.1434625611903; Thu, 18 Jun 2015 04:06:51 -0700 (PDT) Received: from mail-la0-f50.google.com (mail-la0-f50.google.com. [209.85.215.50]) by mx.google.com with ESMTPS id g1si6180599laf.139.2015.06.18.04.06.51 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 18 Jun 2015 04:06:51 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.50 as permitted sender) client-ip=209.85.215.50; Received: by laka10 with SMTP id a10so52000420lak.0 for ; Thu, 18 Jun 2015 04:06:51 -0700 (PDT) X-Received: by 10.112.126.101 with SMTP id mx5mr7206487lbb.35.1434625611813; Thu, 18 Jun 2015 04:06:51 -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 hn6csp1101057lbb; Thu, 18 Jun 2015 04:06:50 -0700 (PDT) X-Received: by 10.68.252.38 with SMTP id zp6mr20287388pbc.159.1434625609907; Thu, 18 Jun 2015 04:06:49 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p8si10896875pdi.112.2015.06.18.04.06.47; Thu, 18 Jun 2015 04:06:49 -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 S1755046AbbFRLGm (ORCPT + 30 others); Thu, 18 Jun 2015 07:06:42 -0400 Received: from mail-pa0-f45.google.com ([209.85.220.45]:33380 "EHLO mail-pa0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932156AbbFRKzo (ORCPT ); Thu, 18 Jun 2015 06:55:44 -0400 Received: by padev16 with SMTP id ev16so59051023pad.0 for ; Thu, 18 Jun 2015 03:55:43 -0700 (PDT) X-Received: by 10.66.154.111 with SMTP id vn15mr19873462pab.108.1434624943476; Thu, 18 Jun 2015 03:55:43 -0700 (PDT) Received: from localhost ([122.167.70.98]) by mx.google.com with ESMTPSA id yv6sm7730093pac.29.2015.06.18.03.55.42 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 18 Jun 2015 03:55:42 -0700 (PDT) From: Viresh Kumar To: Thomas Gleixner , Daniel Lezcano Cc: linaro-kernel@lists.linaro.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Viresh Kumar , Andrew Bresticker , "Steven J. Hill" Subject: [PATCH 11/41] clocksource: mips-gic: Migrate to new 'set-state' interface Date: Thu, 18 Jun 2015 16:24:25 +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.215.50 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 mips-gic 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: Andrew Bresticker Cc: Steven J. Hill Signed-off-by: Viresh Kumar --- drivers/clocksource/mips-gic-timer.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/drivers/clocksource/mips-gic-timer.c b/drivers/clocksource/mips-gic-timer.c index b81ed1a5342d..c3810b61c815 100644 --- a/drivers/clocksource/mips-gic-timer.c +++ b/drivers/clocksource/mips-gic-timer.c @@ -33,12 +33,6 @@ static int gic_next_event(unsigned long delta, struct clock_event_device *evt) return res; } -static void gic_set_clock_mode(enum clock_event_mode mode, - struct clock_event_device *evt) -{ - /* Nothing to do ... */ -} - static irqreturn_t gic_compare_interrupt(int irq, void *dev_id) { struct clock_event_device *cd = dev_id; @@ -67,7 +61,6 @@ static void gic_clockevent_cpu_init(struct clock_event_device *cd) cd->irq = gic_timer_irq; cd->cpumask = cpumask_of(cpu); cd->set_next_event = gic_next_event; - cd->set_mode = gic_set_clock_mode; clockevents_config_and_register(cd, gic_frequency, 0x300, 0x7fffffff);