From patchwork Wed Dec 23 11:29: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: 7910611 Return-Path: X-Original-To: patchwork-linux-samsung-soc@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 B55759F1AF for ; Wed, 23 Dec 2015 11:30:12 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E0BE720458 for ; Wed, 23 Dec 2015 11:30:11 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 104F220431 for ; Wed, 23 Dec 2015 11:30:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756612AbbLWL3l (ORCPT ); Wed, 23 Dec 2015 06:29:41 -0500 Received: from mail-pa0-f45.google.com ([209.85.220.45]:34376 "EHLO mail-pa0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756569AbbLWL3e (ORCPT ); Wed, 23 Dec 2015 06:29:34 -0500 Received: by mail-pa0-f45.google.com with SMTP id uo6so27128730pac.1 for ; Wed, 23 Dec 2015 03:29:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=1kGy3HE84UeRU2OHCpHoBuRY8Kzq0SaK3YTqoZieeRc=; b=LdmQNjEqRNGsM9p142o+Vp45qW2EQ2bbTyb+uyzO6wo7XKaiGhhKWjKpLCOgOiZrcY 3si3TuJY3ZxX9L63VqZpV+70UXwVoah79wVP9Aj0jeAZ49mLlS/CBkidbtPvx7boECBc zdZjzD+SePH1/ly4/+ZLkL0+1cnS7ptXfdK/w= 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=1kGy3HE84UeRU2OHCpHoBuRY8Kzq0SaK3YTqoZieeRc=; b=XJlrtJzxCCj+qNJcPDD/yWgQ/3nifgcmw/1H82nxn0PF51LqJj5/ysgEmpo9c0ADWw EV5HlhwRnDgjsi673CjtAMIC171baVgSeDN2j7QCGV1mKLQbgEULRV77eyjSe0aDIjPd C7xwrIpKql/6jMxIQk1J6mNF1VIO8tCfwZNzCNQE9imGicCVn6bHrFmeCBpHu+HktoYg n1gE4nsoWEQ5EGuEn690F6sJr+m69oUAgWCuG011/YngXo3GapAMj16ZZOL4lwfFUQi7 IfgNIGnhso5S5y1lhIHKeAQhIvpGiPDmUR+r2JS5DlauQhtplLsRNTKDahH4VvU9EIwH QTTg== X-Gm-Message-State: ALoCoQnPO1Ma9/RejmqdKvgZWzRlkR2uvl0DHhG6ozF6rdyahL6nnotdNqRSVZIA6OwhQpXLLrP1HR8XtYa/ARo+obClcvIDaA== X-Received: by 10.66.122.10 with SMTP id lo10mr32275730pab.22.1450870174085; Wed, 23 Dec 2015 03:29:34 -0800 (PST) Received: from localhost ([122.171.29.67]) by smtp.gmail.com with ESMTPSA id o2sm52124467pap.31.2015.12.23.03.29.32 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Wed, 23 Dec 2015 03:29:33 -0800 (PST) From: Viresh Kumar To: Daniel Lezcano , Thomas Gleixner Cc: linaro-kernel@lists.linaro.org, linux-kernel@vger.kernel.org, Viresh Kumar , Krzysztof Kozlowski , Kukjin Kim , linux-arm-kernel@lists.infradead.org (moderated list:ARM/SAMSUNG EXYNOS ARM ARCHITECTURES), linux-samsung-soc@vger.kernel.org (moderated list:ARM/SAMSUNG EXYNOS ARM ARCHITECTURES) Subject: [PATCH 3/3] clockevents/exynos_mct: Implement ->set_state_oneshot_stopped() Date: Wed, 23 Dec 2015 16:59:14 +0530 Message-Id: <230cc7fd48dcb72312acbc512c724f7da13bec0a.1450869375.git.viresh.kumar@linaro.org> X-Mailer: git-send-email 2.7.0.rc1.186.g94414c4 In-Reply-To: References: In-Reply-To: References: Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=ham 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 set_state_oneshot_stopped() is called by the clkevt core, when the next event is required at an expiry time of 'KTIME_MAX'. This normally happens with NO_HZ_{IDLE|FULL} in both LOWRES/HIGHRES modes. This patch makes the clockevent device to stop on such an event, to avoid spurious interrupts, as explained by: commit 8fff52fd5093 ("clockevents: Introduce CLOCK_EVT_STATE_ONESHOT_STOPPED state"). Signed-off-by: Viresh Kumar --- drivers/clocksource/exynos_mct.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/clocksource/exynos_mct.c b/drivers/clocksource/exynos_mct.c index ff44082a0827..be09bc0b5e26 100644 --- a/drivers/clocksource/exynos_mct.c +++ b/drivers/clocksource/exynos_mct.c @@ -313,6 +313,7 @@ static struct clock_event_device mct_comp_device = { .set_state_periodic = mct_set_state_periodic, .set_state_shutdown = mct_set_state_shutdown, .set_state_oneshot = mct_set_state_shutdown, + .set_state_oneshot_stopped = mct_set_state_shutdown, .tick_resume = mct_set_state_shutdown, }; @@ -452,6 +453,7 @@ static int exynos4_local_timer_setup(struct mct_clock_event_device *mevt) evt->set_state_periodic = set_state_periodic; evt->set_state_shutdown = set_state_shutdown; evt->set_state_oneshot = set_state_shutdown; + evt->set_state_oneshot_stopped = set_state_shutdown; evt->tick_resume = set_state_shutdown; evt->features = CLOCK_EVT_FEAT_PERIODIC | CLOCK_EVT_FEAT_ONESHOT; evt->rating = 450;