ARM: tegra11x: set cpu_lp2_min_residency to 1000
Richard Zhao [Mon, 21 Jan 2013 01:51:41 +0000 (01:51 +0000)]
cpu_lp2_min_residency set the minimal cpuidle lp2 target residency. It
can tune chances entering to lp2.

It fixes bug that lp2 consumes more power when video playback. If
cpu_lp2_min_residency is zero, it causes higher G cpu residency and
more cluster switch.

Bug 1216668

Change-Id: I7246dda75fea488b75d8f4a0a8446e2efe3b55e0
Signed-off-by: Richard Zhao <rizhao@nvidia.com>
Reviewed-on: http://git-master/r/192702
(cherry picked from commit 12054d76a810f419d8f9cf477c76a1b38fe13e5c)
Reviewed-on: http://git-master/r/193634
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

arch/arm/mach-tegra/board-dalmore-power.c
arch/arm/mach-tegra/board-pluto-power.c
arch/arm/mach-tegra/board-roth-power.c

index 20cb896..c29913f 100644 (file)
@@ -992,6 +992,7 @@ static struct tegra_suspend_platform_data dalmore_suspend_data = {
        .core_off_timer = 2000,
        .corereq_high   = true,
        .sysclkreq_high = true,
+       .cpu_lp2_min_residency = 1000,
        .min_residency_noncpu = 2000,
        .min_residency_crail = 8000,
 };
index 2fc80fb..872251f 100644 (file)
@@ -687,6 +687,7 @@ static struct tegra_suspend_platform_data pluto_suspend_data = {
        .core_off_timer = 2000,
        .corereq_high   = true,
        .sysclkreq_high = true,
+       .cpu_lp2_min_residency = 1000,
        .min_residency_noncpu = 2000,
        .min_residency_crail = 8000,
 };
index 8c4f72b..a8beeb5 100644 (file)
@@ -649,6 +649,7 @@ static struct tegra_suspend_platform_data roth_suspend_data = {
        .core_off_timer = 2000,
        .corereq_high   = true,
        .sysclkreq_high = true,
+       .cpu_lp2_min_residency = 1000,
        .min_residency_noncpu = 2000,
        .min_residency_crail = 8000,
 };