From patchwork Fri Mar 29 10:31:35 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 15767 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 B105323DEE for ; Fri, 29 Mar 2013 10:31:57 +0000 (UTC) Received: from mail-ve0-f175.google.com (mail-ve0-f175.google.com [209.85.128.175]) by fiordland.canonical.com (Postfix) with ESMTP id 641B5A18D03 for ; Fri, 29 Mar 2013 10:31:57 +0000 (UTC) Received: by mail-ve0-f175.google.com with SMTP id pb11so400101veb.6 for ; Fri, 29 Mar 2013 03:31:57 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=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; bh=MFtIvP1GZgcR4WnD5mPT8JaAkkn8XWzK3hBbxX/uaok=; b=XbSjISSqTtTG/jXB5BCWnVJtZXBS/k+AabkoZfoThkEpS54rSEIUdxeMBn9rOT9uJF 4ZyJ2U83CpTRBS56Irrt6Jl10yT+xAZR7AL7HnwVEJP2haiB2A1w1lH6y1/iY2WnWMUU P14cxv67KytZy3qeCYqbv8kTIuh+FldigN0HdM44dV4weF+W8TSDdsI9uGDk8i/ZQEoM 51yrVAFsZHkRBlaMIssJtITIWyyFYluL3gNVE7L4QK27qZtvwoyP9h9kvq2c5ZJPw1lP vwLxxSVta+eUqhXMBjeqH3MazqlXHkloN9np0HdP7XNY/0xyZYCwNuPZaJ9zZJRanqNW PvFw== X-Received: by 10.220.153.143 with SMTP id k15mr1394357vcw.33.1364553116891; Fri, 29 Mar 2013 03:31:56 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.59.4.204 with SMTP id cg12csp54153ved; Fri, 29 Mar 2013 03:31:56 -0700 (PDT) X-Received: by 10.194.63.109 with SMTP id f13mr2847312wjs.11.1364553115952; Fri, 29 Mar 2013 03:31:55 -0700 (PDT) Received: from mail-wi0-x233.google.com ([2a00:1450:400c:c05::233]) by mx.google.com with ESMTPS id hp2si866702wjb.254.2013.03.29.03.31.55 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 29 Mar 2013 03:31:55 -0700 (PDT) Received-SPF: neutral (google.com: 2a00:1450:400c:c05::233 is neither permitted nor denied by best guess record for domain of daniel.lezcano@linaro.org) client-ip=2a00:1450:400c:c05::233; Authentication-Results: mx.google.com; spf=neutral (google.com: 2a00:1450:400c:c05::233 is neither permitted nor denied by best guess record for domain of daniel.lezcano@linaro.org) smtp.mail=daniel.lezcano@linaro.org Received: by mail-wi0-f179.google.com with SMTP id hn17so310063wib.0 for ; Fri, 29 Mar 2013 03:31:55 -0700 (PDT) X-Received: by 10.194.20.9 with SMTP id j9mr2667222wje.56.1364553115568; Fri, 29 Mar 2013 03:31:55 -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 q13sm2472076wie.0.2013.03.29.03.31.53 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 29 Mar 2013 03:31:54 -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 Subject: [PATCH 9/9] ARM: omap3: cpuidle: enable time keeping Date: Fri, 29 Mar 2013 11:31:35 +0100 Message-Id: <1364553095-25110-9-git-send-email-daniel.lezcano@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1364553095-25110-1-git-send-email-daniel.lezcano@linaro.org> References: <1364553095-25110-1-git-send-email-daniel.lezcano@linaro.org> X-Gm-Message-State: ALoCoQnKzBJx9QRKkleNGMQ57N1Q3BX9eNng4otadl194iUGwDC7AuuUAfcna6IQoDRcRjU66GnJ 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 --- 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,