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: 58975 Delivered-To: patch@linaro.org Received: by 10.112.89.199 with SMTP id bq7csp3796385lbb; Wed, 23 Dec 2015 03:29:58 -0800 (PST) X-Received: by 10.98.18.69 with SMTP id a66mr43516300pfj.50.1450870197892; Wed, 23 Dec 2015 03:29:57 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d10si9695205pap.237.2015.12.23.03.29.57; Wed, 23 Dec 2015 03:29:57 -0800 (PST) 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; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dkim=neutral (body hash did not verify) header.i=@linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756631AbbLWL3o (ORCPT + 29 others); Wed, 23 Dec 2015 06:29:44 -0500 Received: from mail-pa0-f45.google.com ([209.85.220.45]:34945 "EHLO mail-pa0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756584AbbLWL3e (ORCPT ); Wed, 23 Dec 2015 06:29:34 -0500 Received: by mail-pa0-f45.google.com with SMTP id jx14so104796364pad.2 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=WMj0ykcBJVF5mdbNlYp2k+GFhYKKmGx0+T9hdmZWtiucT5WAps5Tu9W9d9Efi2CMKy 3FrYJdWV+8DZ3exg6S/4zWTSTJWgm4nmYIQSoKBTUxzkAZvEC4rPGisqHGo9Cj9Rk/8J X3ishmtyA1UlNImlVHskG1L85W3D8xHsfy1mQfH1onoS/vJzYJU0TgoB/QZNpI80Z6ZM /+EdtrWZHMRwG/+wKDcC1FueJey3BQM2Y6TgmCpZ69rNoHe/IWNSZj1iKEblFdL3LPxD ce5Oa//htodgpE8iSC6Kbe0tdflmLzzHRKQhVWq0e9yNnyUJQ0WiUdygOjIns/l9z8XN z2gQ== X-Gm-Message-State: ALoCoQmQrau/Zbkn+BAbHDFpLUfB1QieGSlA8EOE4z/+VpOA6FuA8h3V+Sl7IrQexEfbtKJ/ja5hteZVIitf8K3WdpkSIwl22A== 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-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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(+) -- 2.7.0.rc1.186.g94414c4 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ 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;