From patchwork Thu Jun 27 15:10:00 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 2794041 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 23D42BF4A1 for ; Thu, 27 Jun 2013 15:14:09 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E88F42027F for ; Thu, 27 Jun 2013 15:14:07 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 91A9720263 for ; Thu, 27 Jun 2013 15:14:06 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1UsDsQ-0008S2-MD; Thu, 27 Jun 2013 15:13:22 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1UsDps-00044D-9e; Thu, 27 Jun 2013 15:10:12 +0000 Received: from mail-wi0-f182.google.com ([209.85.212.182]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1UsDpo-00041f-TO for linux-arm-kernel@lists.infradead.org; Thu, 27 Jun 2013 15:10:10 +0000 Received: by mail-wi0-f182.google.com with SMTP id m6so734761wiv.15 for ; Thu, 27 Jun 2013 08:09:46 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:x-gm-message-state; bh=lGEUG3rfmXM87nQQjMuedu2PWCdxL/V4TvEyjWP0ZZk=; b=ZL6xwLMzNa8O+ga2+mTk8F2PwyE+a6Eg6nUpujsMjB/8ZhNiK1E67dHMmTSEkZS4hF MSDi8lKFWIViMLQpF/1IQvYiH8rpW6s/1P8NY1Hra9yFcSRPLkPY0J2eqIb6I+ci+3G4 SMi1ZXAP6xUXV7RP8JPwrA3/aItZhcX4/4m2XDYRQOEfbCh87bm179QCrxb2wfSpvSDp U4QfjOKIl9Vc2CuVQPQwlhy5o3BIRKvbIor5s2gGw/iqo+tKMDJq+YcVek2htK5ZzppR gGjhflsUgMesiTvV+ff2AzCJs6xE8cdovCwEwCMX82Jw5Ts+OfFSZxVEts4Sq65VhaKv 45+Q== X-Received: by 10.194.90.244 with SMTP id bz20mr6758480wjb.69.1372345786695; Thu, 27 Jun 2013 08:09:46 -0700 (PDT) Received: from mai.home (AToulouse-654-1-435-101.w83-205.abo.wanadoo.fr. [83.205.66.101]) by mx.google.com with ESMTPSA id xn20sm4205621wib.5.2013.06.27.08.09.45 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 27 Jun 2013 08:09:45 -0700 (PDT) From: Daniel Lezcano To: nsekhar@ti.com, khilman@deeprootsystems.com Subject: [PATCH V2] ARM: cpuidle: davinci: Fix target residency Date: Thu, 27 Jun 2013 17:10:00 +0200 Message-Id: <1372345800-26792-1-git-send-email-daniel.lezcano@linaro.org> X-Mailer: git-send-email 1.7.9.5 X-Gm-Message-State: ALoCoQlDYm4+qDXEw58ipCz/BHTsFpkU0Fdop+Z31aFrQucIFsJayn5ExHCInVZ5qBbcHZ5VWyeS X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130627_111009_077340_1E35C4E1 X-CRM114-Status: GOOD ( 11.03 ) X-Spam-Score: -2.6 (--) Cc: linaro-kernel@lists.linaro.org, sergei.shtylyov@cogentembedded.com, patches@linaro.org, linux-pm@vger.kernel.org, rjw@sisk.pl, linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-5.5 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The commit 19976c2a88d125aec16b9255c7197c297bbdd637 changed the target residency to 100000, assuming this is a careless mistake. commit 19976c2a88d125aec16b9255c7197c297bbdd637 Author: Robert Lee Date: Tue Mar 20 15:22:45 2012 -0500 ARM: davinci: Consolidate time keeping and irq enable Enable core cpuidle timekeeping and irq enabling and remove that handling from this code. Signed-off-by: Robert Lee Reviewed-by: Kevin Hilman Reviewed-by: Daniel Lezcano Acked-by: Jean Pihet Signed-off-by: Len Brown The same happened to the at91's cpuidle driver. Fix it by putting the initial value to 10000. Signed-off-by: Daniel Lezcano Acked-by: Sekhar Nori --- arch/arm/mach-davinci/cpuidle.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-davinci/cpuidle.c b/arch/arm/mach-davinci/cpuidle.c index 36aef3a..f1ac1c9 100644 --- a/arch/arm/mach-davinci/cpuidle.c +++ b/arch/arm/mach-davinci/cpuidle.c @@ -65,7 +65,7 @@ static struct cpuidle_driver davinci_idle_driver = { .states[1] = { .enter = davinci_enter_idle, .exit_latency = 10, - .target_residency = 100000, + .target_residency = 10000, .flags = CPUIDLE_FLAG_TIME_VALID, .name = "DDR SR", .desc = "WFI and DDR Self Refresh",