From patchwork Wed Apr 3 12:15:21 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 15861 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id DEAD323E21 for ; Wed, 3 Apr 2013 12:15:49 +0000 (UTC) Received: from mail-vc0-f197.google.com (mail-vc0-f197.google.com [209.85.220.197]) by fiordland.canonical.com (Postfix) with ESMTP id 8C555A18659 for ; Wed, 3 Apr 2013 12:15:49 +0000 (UTC) Received: by mail-vc0-f197.google.com with SMTP id gf12sf2264486vcb.0 for ; Wed, 03 Apr 2013 05:15:49 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:mime-version:x-beenthere:x-received:received-spf :x-received:x-forwarded-to:x-forwarded-for:delivered-to:x-received :received-spf:x-received:from:to:cc:subject:date:message-id:x-mailer :in-reply-to:references:x-gm-message-state:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-google-group-id:list-post:list-help:list-archive:list-unsubscribe; bh=Xx2myUiwOlayhZRRw4dBSTLC2VIQevf+Qo6Q95Jqi9c=; b=aKvW9nMRqTOiyrdJoIwHqSsbCnRmx9oNiuyvFbSc1Q94f4qxha8gq+uYmrBdRRf49M GUL29RntFsoj6Ke+2MQI87E7foTPBdNEfijCeW0ED1t6MccTgBeHOtvrSQGsDf4Sfm3J DBM8ClFdpQnCcVmHYdOEO0dgbNdt/f3wOVXCqeGW9fWs4kphUdqlB8TioO0ibwJayDWZ fv38GuLPTGoPsYpUNpLnuZy9VzXBpz/ImHcg5KzD7nzfbqEbMs9H9wYihgchFv0wn+jV LguQUwmNOoaiZ6JSGgJWtbYJIbQKimQZZzOGr9zGZGQwSA8Llar9qYuxv7qNFAmiBqAY x28g== X-Received: by 10.224.18.132 with SMTP id w4mr1007950qaa.1.1364991349093; Wed, 03 Apr 2013 05:15:49 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.110.9 with SMTP id hw9ls836693qeb.83.gmail; Wed, 03 Apr 2013 05:15:49 -0700 (PDT) X-Received: by 10.52.71.235 with SMTP id y11mr818183vdu.43.1364991349011; Wed, 03 Apr 2013 05:15:49 -0700 (PDT) Received: from mail-vb0-x22a.google.com (mail-vb0-x22a.google.com [2607:f8b0:400c:c02::22a]) by mx.google.com with ESMTPS id p8si4663671vdw.62.2013.04.03.05.15.48 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 03 Apr 2013 05:15:48 -0700 (PDT) Received-SPF: neutral (google.com: 2607:f8b0:400c:c02::22a is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=2607:f8b0:400c:c02::22a; Received: by mail-vb0-f42.google.com with SMTP id p12so387989vbe.29 for ; Wed, 03 Apr 2013 05:15:48 -0700 (PDT) X-Received: by 10.58.29.101 with SMTP id j5mr985455veh.26.1364991348908; Wed, 03 Apr 2013 05:15:48 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.59.4.204 with SMTP id cg12csp167623ved; Wed, 3 Apr 2013 05:15:48 -0700 (PDT) X-Received: by 10.194.109.136 with SMTP id hs8mr2545485wjb.8.1364991347871; Wed, 03 Apr 2013 05:15:47 -0700 (PDT) Received: from mail-wi0-x230.google.com (mail-wi0-x230.google.com [2a00:1450:400c:c05::230]) by mx.google.com with ESMTPS id bw14si6576957wib.45.2013.04.03.05.15.47 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 03 Apr 2013 05:15:47 -0700 (PDT) Received-SPF: neutral (google.com: 2a00:1450:400c:c05::230 is neither permitted nor denied by best guess record for domain of daniel.lezcano@linaro.org) client-ip=2a00:1450:400c:c05::230; Received: by mail-wi0-f176.google.com with SMTP id hm14so3546775wib.15 for ; Wed, 03 Apr 2013 05:15:47 -0700 (PDT) X-Received: by 10.180.94.135 with SMTP id dc7mr22328174wib.11.1364991347470; Wed, 03 Apr 2013 05:15:47 -0700 (PDT) Received: from mai.home (AToulouse-654-1-486-7.w92-146.abo.wanadoo.fr. [92.146.77.7]) by mx.google.com with ESMTPS id bq19sm8729530wib.7.2013.04.03.05.15.44 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 03 Apr 2013 05:15:46 -0700 (PDT) From: Daniel Lezcano To: rjw@sisk.pl Cc: linux-pm@vger.kernel.org, patches@linaro.org, linaro-kernel@lists.linaro.org, linux-arm-kernel@lists.infradead.org, linux@arm.linux.org.uk, rnayak@ti.com, swarren@wwwdotorg.org, linux-tegra@vger.kernel.org, horms+renesas@verge.net.au, santosh.shilimkar@ti.com, arnd@arndb.de, lenb@kernel.org, nsekhar@ti.com, josephl@nvidia.com, deepthi@linux.vnet.ibm.com Subject: [PATCH 8/9] ARM: omap3: cpuidle: enable time keeping Date: Wed, 3 Apr 2013 14:15:21 +0200 Message-Id: <1364991322-20585-8-git-send-email-daniel.lezcano@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1364991322-20585-1-git-send-email-daniel.lezcano@linaro.org> References: <1364991322-20585-1-git-send-email-daniel.lezcano@linaro.org> X-Gm-Message-State: ALoCoQnRHQw2kCbUPj0D3cBEx487vDGHA1kjSooeu8NL3D+u/pnqW5/JEX9dETQqZ7PUvokjfKB/ X-Original-Sender: daniel.lezcano@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 2607:f8b0:400c:c02::22a is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , The TIME_VALID flag is specified for the different states but the time residency computation is not done, no tk flag, no time computation in the idle function. Set the en_core_tk_irqen flag to activate it. Signed-off-by: Daniel Lezcano Acked-by: Santosh Shilimkar Acked-by: Kevin Hilman --- arch/arm/mach-omap2/cpuidle34xx.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-omap2/cpuidle34xx.c b/arch/arm/mach-omap2/cpuidle34xx.c index 80392fc..4f67a5b 100644 --- a/arch/arm/mach-omap2/cpuidle34xx.c +++ b/arch/arm/mach-omap2/cpuidle34xx.c @@ -274,8 +274,9 @@ static int omap3_enter_idle_bm(struct cpuidle_device *dev, static DEFINE_PER_CPU(struct cpuidle_device, omap3_idle_dev); static struct cpuidle_driver omap3_idle_driver = { - .name = "omap3_idle", - .owner = THIS_MODULE, + .name = "omap3_idle", + .owner = THIS_MODULE, + .en_core_tk_irqen = 1, .states = { { .enter = omap3_enter_idle_bm,