diff options
author | Alex Frid <afrid@nvidia.com> | 2011-12-03 21:56:29 -0800 |
---|---|---|
committer | Rohan Somvanshi <rsomvanshi@nvidia.com> | 2012-01-12 09:55:42 -0800 |
commit | 18983122e621aedfec72e6e3cf95f27018b88d1f (patch) | |
tree | a92aa11447ca8696c4ba0903a1c4cb8543f1efdb /arch/arm/mach-tegra/cpuidle-t3.c | |
parent | 53c7a0be730be0c61a0680425ed53033d477d677 (diff) |
ARM: tegra: power: Fix Tegra3 LP2 stats
Fixed Tegra3 LP2 stats to account for total completed and interrupted
LP2 time (interrupted LP2 time was missed).
(cherry picked from commit 4207244f6fc25544315fe5aaf067ea7684731d9d)
Change-Id: I3b87819d56e3a700f7e0858fa124b0fdfabe8295
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/73902
Reviewed-by: Peter Boonstoppel <pboonstoppel@nvidia.com>
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
Reviewed-on: http://git-master/r/74557
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>
Tested-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
Diffstat (limited to 'arch/arm/mach-tegra/cpuidle-t3.c')
-rw-r--r-- | arch/arm/mach-tegra/cpuidle-t3.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/mach-tegra/cpuidle-t3.c b/arch/arm/mach-tegra/cpuidle-t3.c index 2dedf2c2248a..8e0122f0bed8 100644 --- a/arch/arm/mach-tegra/cpuidle-t3.c +++ b/arch/arm/mach-tegra/cpuidle-t3.c @@ -247,6 +247,8 @@ static void tegra3_idle_enter_lp2_cpu_0(struct cpuidle_device *dev, exit_time = ktime_get(); if (!is_lp_cluster()) tegra_dvfs_rail_on(tegra_cpu_rail, exit_time); + idle_stats.in_lp2_time[cpu_number(dev->cpu)] += + ktime_to_us(ktime_sub(exit_time, entry_time)); } else exit_time = ktime_get(); @@ -279,8 +281,6 @@ static void tegra3_idle_enter_lp2_cpu_0(struct cpuidle_device *dev, idle_stats.lp2_completed_count++; idle_stats.lp2_completed_count_bin[bin]++; - idle_stats.in_lp2_time[cpu_number(dev->cpu)] += - ktime_to_us(ktime_sub(exit_time, entry_time)); pr_debug("%lld %lld %d %d\n", request, ktime_to_us(ktime_sub(exit_time, entry_time)), |