From patchwork Thu Feb 25 13:37:17 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 62889 Delivered-To: patch@linaro.org Received: by 10.112.199.169 with SMTP id jl9csp165180lbc; Thu, 25 Feb 2016 05:38:22 -0800 (PST) X-Received: by 10.98.71.92 with SMTP id u89mr62894869pfa.122.1456407494170; Thu, 25 Feb 2016 05:38:14 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u69si9436129pfa.253.2016.02.25.05.38.13; Thu, 25 Feb 2016 05:38:14 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-samsung-soc-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-samsung-soc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-samsung-soc-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 S932993AbcBYNiH (ORCPT + 4 others); Thu, 25 Feb 2016 08:38:07 -0500 Received: from mail-wm0-f41.google.com ([74.125.82.41]:36434 "EHLO mail-wm0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932982AbcBYNiF (ORCPT ); Thu, 25 Feb 2016 08:38:05 -0500 Received: by mail-wm0-f41.google.com with SMTP id g62so29021394wme.1 for ; Thu, 25 Feb 2016 05:38:04 -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; bh=owSfCu0cXKBB9vVptwC4+Gd/3gly9ag/OeLnODPsR9g=; b=atuQryxp0ommSHnJWMrwSg+8HDRK3SsSsdmqlX/Sjwb+0/079hGlp2Hcy3Q2eF/h+z nCGBSKxRTZ7amcj5RVf8kSetFnQaQun9DWzBLxMSdJC9XGcN85jdwjJqrK7N/oBAynDG LuBC6AhhsK5iQ9XqKH5DQ3DwboF9ARfne2OX0= 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; bh=owSfCu0cXKBB9vVptwC4+Gd/3gly9ag/OeLnODPsR9g=; b=etylpoECoro1bPfz+FfZX5/SJhWPf552FZR/w6VaeF59tacKyYiSC2KnXguqvZuq8X jtXCB5LcttuyicH5WEH2/+VffGKUqyGMMmQ1PK+MTms63ZpCYusLVyGKRn9j7zYjdRyB l+DfM4VGIXfvMfHZ2MIptFpjITPzFSCjr1EUfGnCpCSDZcdidV7iilQxt/e6LMhzMYOL CrvgHXkTitoNDb5q30qumeCeR3zZ+Q30zWNwjab2Nx3W5pfeGMpUPicN0kXeinZCQZxu rPjVnufKGWj+XLzKVGEij9BDFJ9JAPz3+n4YI3EFFv6beyxNyaNTURCF/S/R8W48oYRg oAAA== X-Gm-Message-State: AG10YORLD6XaisJ2g65HdCtpm3VMfSbErSCpErIWltnTQktjvbF6wCZtNdUtJHun12i+bo9X X-Received: by 10.28.99.136 with SMTP id x130mr4027089wmb.12.1456407479080; Thu, 25 Feb 2016 05:37:59 -0800 (PST) Received: from mai.com (sju31-1-78-210-255-2.fbx.proxad.net. [78.210.255.2]) by smtp.gmail.com with ESMTPSA id g1sm4056053wmc.0.2016.02.25.05.37.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 25 Feb 2016 05:37:58 -0800 (PST) From: Daniel Lezcano To: tglx@linutronix.de Cc: Viresh Kumar , Kukjin Kim , Krzysztof Kozlowski , linux-kernel@vger.kernel.org (open list:CLOCKSOURCE, CLOC...), linux-arm-kernel@lists.infradead.org (moderated list:ARM/SAMSUNG EXYNO...), linux-samsung-soc@vger.kernel.org (moderated list:ARM/SAMSUNG EXYNO...) Subject: [PATCH 9/9] clockevents/drivers/exynos_mct: Implement ->set_state_oneshot_stopped() Date: Thu, 25 Feb 2016 14:37:17 +0100 Message-Id: <1456407438-6131-9-git-send-email-daniel.lezcano@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1456407438-6131-1-git-send-email-daniel.lezcano@linaro.org> References: <56CF00F6.9010301@linaro.org> <1456407438-6131-1-git-send-email-daniel.lezcano@linaro.org> Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org From: Viresh Kumar 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 Signed-off-by: Daniel Lezcano --- drivers/clocksource/exynos_mct.c | 2 ++ 1 file changed, 2 insertions(+) -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/clocksource/exynos_mct.c b/drivers/clocksource/exynos_mct.c index ff44082..be09bc0 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;