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: 6635871 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 93D9B9F399 for ; Thu, 18 Jun 2015 11:23:01 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B7CCA205E8 for ; Thu, 18 Jun 2015 11:23:00 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id C29D5205D8 for ; Thu, 18 Jun 2015 11:22:59 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Z5Xs4-0001SZ-7F; Thu, 18 Jun 2015 11:20:36 +0000 Received: from casper.infradead.org ([2001:770:15f::2]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Z5XnA-0003Vl-3I for linux-arm-kernel@bombadil.infradead.org; Thu, 18 Jun 2015 11:15:32 +0000 Received: from mail-pa0-f49.google.com ([209.85.220.49]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Z5XUL-0004Kt-D8 for linux-arm-kernel@lists.infradead.org; Thu, 18 Jun 2015 10:56:16 +0000 Received: by paceq1 with SMTP id eq1so34547720pac.3 for ; Thu, 18 Jun 2015 03:55:43 -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=9rhbOecdNTN7Ef6S+4hpspbnMQehBF/r+j3QV9jqxNM=; b=bP5iBVf5aRx1cikRCUIm4VFfDk8fjgAQlraNNbDrcK9WzJ1QGxbOVQ/V3nmk8s9Lgc Ty5A+/8kDtwrvcqn/8WuqMpfT5oau/5Gc8SJaB89li7EygTwenOBtMJQxqitYbhL0172 GjVkSWuMscFhlmfRp+zNWLg5wwYqn6dDrxJYLdg8ssH6Vi/8cVj/dNw0l4uE1Dzo80Ur bVx2P8mRrwsQG2Exk5taBGKkBKvho9oSUSZJ8CPZGYu1pCfhpqUPjxN72jir1F11fJPr uayOmx6u3yrYsQyz1DXkwEbSfzVQg7tKbIu1+uhcWoBEhFBPRQ0LJKg1RLSj0sTW8ToF Gl1w== X-Gm-Message-State: ALoCoQkFzo1oSBHW5e6eBjjhZsA07mX22qoAXSMPu4wgS4cfapBZ1LgctaMBovVASvLj/Ac0Ns7b 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 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: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150618_115605_582880_38480F97 X-CRM114-Status: GOOD ( 13.18 ) X-Spam-Score: -2.6 (--) Cc: linaro-kernel@lists.linaro.org, Andrew Bresticker , Viresh Kumar , "Steven J. Hill" , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.5 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable 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 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);