From patchwork Mon Sep 29 00:23:39 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 38056 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 BA8B5202DB for ; Mon, 29 Sep 2014 00:26:02 +0000 (UTC) Received: by mail-la0-f69.google.com with SMTP id q1sf3683167lam.8 for ; Sun, 28 Sep 2014 17:26:01 -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:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=JC0JL7d5BfNwDjykckG0nt/nYITvICop0hYhpSIWbjg=; b=Zs5jzUulM9z+ezHYHVVmSqOKJnazEx07cD8960XWBLgmgQep7uXmZ/uA7tcrMNYpKu MvTYPdj/GboxwsNb+lWLFXQLbhbb7iSRhE3D5RYDwFKJVSFQPmvJy6J7Vq9vy4+KM9iv +h4iOpv135yAJQxNjWFYGRS4bZNRPSjfOuN2HghOYcLn7vqVi+KEWMJuil0NLlDbPe00 MHwZE46aM2LAOu6qtPSM/b+eRZnW72qAC+IRVG4v2vWvcOK7hBYeikX+bhDn+q0r4Eo2 7rdOZF66K460KzmYxGQh2ocyWhKl7BY22e40mhyRKHMm/TcnkMRKwLdHH9vPPW5Mba+A 27SQ== X-Gm-Message-State: ALoCoQkLnU8Sz0ivV2tLsTVexXXSNVmtQRBHdW4YUoUTXbpTZULLbVwoyXbh4LZGQTVkzgSBWEIf X-Received: by 10.112.184.197 with SMTP id ew5mr5228088lbc.0.1411950361315; Sun, 28 Sep 2014 17:26:01 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.26.73 with SMTP id j9ls596353lag.29.gmail; Sun, 28 Sep 2014 17:26:01 -0700 (PDT) X-Received: by 10.112.13.132 with SMTP id h4mr33922098lbc.45.1411950361074; Sun, 28 Sep 2014 17:26:01 -0700 (PDT) Received: from mail-la0-f48.google.com (mail-la0-f48.google.com [209.85.215.48]) by mx.google.com with ESMTPS id z8si9887244lbf.132.2014.09.28.17.26.01 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 28 Sep 2014 17:26:01 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.48 as permitted sender) client-ip=209.85.215.48; Received: by mail-la0-f48.google.com with SMTP id q1so5440405lam.35 for ; Sun, 28 Sep 2014 17:26:01 -0700 (PDT) X-Received: by 10.112.63.70 with SMTP id e6mr266107lbs.92.1411950360974; Sun, 28 Sep 2014 17:26:00 -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.130.169 with SMTP id of9csp98683lbb; Sun, 28 Sep 2014 17:26:00 -0700 (PDT) X-Received: by 10.70.91.176 with SMTP id cf16mr65640078pdb.137.1411950359431; Sun, 28 Sep 2014 17:25:59 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id bl2si20258295pbc.244.2014.09.28.17.25.58 for ; Sun, 28 Sep 2014 17:25:59 -0700 (PDT) Received-SPF: none (google.com: linux-kernel-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754258AbaI2AYO (ORCPT + 27 others); Sun, 28 Sep 2014 20:24:14 -0400 Received: from mail-wi0-f178.google.com ([209.85.212.178]:35356 "EHLO mail-wi0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753689AbaI2AX5 (ORCPT ); Sun, 28 Sep 2014 20:23:57 -0400 Received: by mail-wi0-f178.google.com with SMTP id ho1so884190wib.17 for ; Sun, 28 Sep 2014 17:23:55 -0700 (PDT) X-Received: by 10.180.96.226 with SMTP id dv2mr43818440wib.48.1411950235838; Sun, 28 Sep 2014 17:23:55 -0700 (PDT) Received: from localhost.localdomain (AToulouse-656-1-925-235.w90-55.abo.wanadoo.fr. [90.55.46.235]) by mx.google.com with ESMTPSA id h5sm14014311wje.8.2014.09.28.17.23.54 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 28 Sep 2014 17:23:54 -0700 (PDT) From: Daniel Lezcano To: tglx@linutronix.de, mingo@kernel.org Cc: linux-kernel@vger.kernel.org Subject: [PATCH 06/13] clocksource: vf_pit_timer: Support shutdown mode Date: Mon, 29 Sep 2014 02:23:39 +0200 Message-Id: <1411950226-21598-6-git-send-email-daniel.lezcano@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1411950226-21598-1-git-send-email-daniel.lezcano@linaro.org> References: <5428A559.5050908@linaro.org> <1411950226-21598-1-git-send-email-daniel.lezcano@linaro.org> 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: daniel.lezcano@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.48 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: , From: Stefan Agner In order to avoid waking up the system in a low power mode, the clocksource should not generate interrupts anymore. Disable the PIT timer interrupt when changing into the CLOCK_EVT_MODE_SHUTDOWN mode. [dlezcano] : remove superfluous empty line Signed-off-by: Stefan Agner Signed-off-by: Daniel Lezcano Acked-by: Bill Pringlemeir --- drivers/clocksource/vf_pit_timer.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/clocksource/vf_pit_timer.c b/drivers/clocksource/vf_pit_timer.c index a918bc4..b45ac62 100644 --- a/drivers/clocksource/vf_pit_timer.c +++ b/drivers/clocksource/vf_pit_timer.c @@ -93,6 +93,10 @@ static void pit_set_mode(enum clock_event_mode mode, case CLOCK_EVT_MODE_PERIODIC: pit_set_next_event(cycle_per_jiffy, evt); break; + case CLOCK_EVT_MODE_SHUTDOWN: + case CLOCK_EVT_MODE_UNUSED: + pit_timer_disable(); + break; default: break; }