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: 18162 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qa0-f71.google.com (mail-qa0-f71.google.com [209.85.216.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 2F32A23910 for ; Thu, 27 Jun 2013 15:09:49 +0000 (UTC) Received: by mail-qa0-f71.google.com with SMTP id bv4sf1408604qab.6 for ; Thu, 27 Jun 2013 08:09:48 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-beenthere:x-forwarded-to:x-forwarded-for :delivered-to:from:to:cc:subject:date:message-id:x-mailer :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=lGEUG3rfmXM87nQQjMuedu2PWCdxL/V4TvEyjWP0ZZk=; b=dGnMrGOTATcW4qjBAuzYPOugTVuqY+OyiUilOj/CKZtY1O+SOYRFo/OokEpW7scBLO PZ+vVWkZwTmH/JYXYgvNbirx/ca05b53JrWgRSUZOBkwRfrBNE/vpSIJ11eyzDqMK+iB R6UsZgMF6cU803Pms4pSjexigsgrcWgxaRnroooV1KnkFvZI8FiY0TjqXL7gq+YSEbrX OP+6B6f1fr3RgS9GfALrqOIzknpe55WhYlZDOX7HCQdAUNMxN9EYv7NJSmnHZpY4IWLo 54OwL+Uf3qF75nkt2wxAKiXxnMvvFDrP9tqHPxjcsSzDgrlVEeOHklchENnNpIITG0LB BYQg== X-Received: by 10.236.63.37 with SMTP id z25mr4899129yhc.49.1372345788768; Thu, 27 Jun 2013 08:09:48 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.128.34 with SMTP id nl2ls884233qeb.39.gmail; Thu, 27 Jun 2013 08:09:48 -0700 (PDT) X-Received: by 10.52.66.104 with SMTP id e8mr3131164vdt.5.1372345788559; Thu, 27 Jun 2013 08:09:48 -0700 (PDT) Received: from mail-vc0-f175.google.com (mail-vc0-f175.google.com [209.85.220.175]) by mx.google.com with ESMTPS id aw7si874492vec.126.2013.06.27.08.09.48 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 27 Jun 2013 08:09:48 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.175 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.175; Received: by mail-vc0-f175.google.com with SMTP id hr11so317669vcb.20 for ; Thu, 27 Jun 2013 08:09:48 -0700 (PDT) X-Received: by 10.220.17.206 with SMTP id t14mr279496vca.15.1372345788474; Thu, 27 Jun 2013 08:09: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.58.165.8 with SMTP id yu8csp152287veb; Thu, 27 Jun 2013 08:09:47 -0700 (PDT) X-Received: by 10.180.187.17 with SMTP id fo17mr6243970wic.60.1372345787110; Thu, 27 Jun 2013 08:09:47 -0700 (PDT) Received: from mail-we0-f178.google.com (mail-we0-f178.google.com [74.125.82.178]) by mx.google.com with ESMTPS id pa4si1207019wjb.26.2013.06.27.08.09.46 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 27 Jun 2013 08:09:47 -0700 (PDT) Received-SPF: neutral (google.com: 74.125.82.178 is neither permitted nor denied by best guess record for domain of daniel.lezcano@linaro.org) client-ip=74.125.82.178; Received: by mail-we0-f178.google.com with SMTP id u53so680970wes.9 for ; Thu, 27 Jun 2013 08:09:46 -0700 (PDT) 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 Cc: sergei.shtylyov@cogentembedded.com, rjw@sisk.pl, linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, patches@linaro.org, linaro-kernel@lists.linaro.org 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: ALoCoQkPRRTi8Nx705fmplYFP4mfV4L4kqCcjk0tAdPeEHbg3bryXis0kz7myVnVr55BoLfjUw/y X-Original-Sender: daniel.lezcano@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.175 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 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",