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: 2386591 Return-Path: X-Original-To: patchwork-linux-pm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id 3093A4020C for ; Wed, 3 Apr 2013 12:15:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760752Ab3DCMPt (ORCPT ); Wed, 3 Apr 2013 08:15:49 -0400 Received: from mail-wi0-f176.google.com ([209.85.212.176]:57384 "EHLO mail-wi0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1760764Ab3DCMPs (ORCPT ); Wed, 3 Apr 2013 08:15:48 -0400 Received: by mail-wi0-f176.google.com with SMTP id hm14so3551829wib.9 for ; Wed, 03 Apr 2013 05:15:47 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references:x-gm-message-state; bh=Xx2myUiwOlayhZRRw4dBSTLC2VIQevf+Qo6Q95Jqi9c=; b=Aq9OQEqRhQfRFRcwIG+lucHeTcpHG9j4xhUzYklwNZK9Mrp4QTIYCr7AZ4ftNgGJrZ QngRe+GeGiE+B1hhoRx7SabxZ9CUWqLvBov7SOCiQG/DJan1VXR8gJYjAp7dB4LWXdC1 7SZao8Ej8eSqCo9DYaEMZ1cyai/p+BQsIBXZl6+RRV5amlos4/jQVjAT1jAPJNrJmjer N98wpGO0VqOPpJebXMC1RgA4afQHkaVa2g5yDDLKDPnScvh3fN3WOfg3GZgbOFLazpTL EKTRnsRLpkTSsko1vgQIMtC9SPTycLfj9uYUwTtSY7svtZi+iPIlRYmvV4i7sQaz+Xdn NMNQ== 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: ALoCoQnr6gyIZu/yktloMzVcxakuaOqZ605e4XpQ1Gbg7zB6XrPKAYw4xkxrw3nziDu/lZG7KcdS Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org 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,