summaryrefslogtreecommitdiff
path: root/arch/arm/mach-tegra/cpuidle-t3.c
diff options
context:
space:
mode:
authorPeter De Schrijver <pdeschrijver@nvidia.com>2011-05-18 11:10:08 +0300
committerNiket Sirsi <nsirsi@nvidia.com>2011-05-23 17:29:27 -0700
commitb263419bc978c9a9df7a2006c1287d86e726b209 (patch)
treeac4c5491252916ca5f07b67b5fecb1533793ccf2 /arch/arm/mach-tegra/cpuidle-t3.c
parentdf49f87271b01240c95aca925c6b13a549336967 (diff)
ARM: tegra: power: trace C states and CPU mode switches
Change-Id: I7915d356f18ac830c93b736463406b907d8c1cef Signed-off-by: Peter De Schrijver <pdeschrijver@nvidia.com> Reviewed-on: http://git-master/r/31958 Reviewed-by: Niket Sirsi <nsirsi@nvidia.com> Tested-by: Niket Sirsi <nsirsi@nvidia.com>
Diffstat (limited to 'arch/arm/mach-tegra/cpuidle-t3.c')
-rw-r--r--arch/arm/mach-tegra/cpuidle-t3.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/cpuidle-t3.c b/arch/arm/mach-tegra/cpuidle-t3.c
index bf99617aa243..83625c20aaa5 100644
--- a/arch/arm/mach-tegra/cpuidle-t3.c
+++ b/arch/arm/mach-tegra/cpuidle-t3.c
@@ -47,6 +47,8 @@
#include <mach/legacy_irq.h>
#include <mach/suspend.h>
+#include <trace/events/power.h>
+
#include "power.h"
#include "reset.h"
#include "clock.h"
@@ -210,6 +212,8 @@ void tegra_idle_enter_lp2_cpu_0(struct cpuidle_device *dev,
idle_stats.lp2_count++;
idle_stats.lp2_count_bin[bin]++;
+ trace_power_start(POWER_CSTATE, 2, dev->cpu);
+
if (tegra_suspend_lp2(sleep_time, 0) == 0)
sleep_completed = true;
else
@@ -277,6 +281,8 @@ void tegra_idle_enter_lp2_cpu_n(struct cpuidle_device *dev,
idle_stats.tear_down_count[cpu_number(dev->cpu)]++;
+ trace_power_start(POWER_CSTATE, 2, dev->cpu);
+
/* Save time this CPU must be awakened by. */
tegra_cpu_wake_by_time[dev->cpu] = ktime_to_us(ktime_get()) + request;
smp_wmb();