diff options
author | Peter De Schrijver <pdeschrijver@nvidia.com> | 2011-05-18 11:10:08 +0300 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2011-11-30 21:47:13 -0800 |
commit | cd02d305f5c194824616c4123de199ca3dcd822b (patch) | |
tree | 51a884d3f9ae0a944a337c13c740c9e595fe51fc /arch/arm/mach-tegra/pm-t3.c | |
parent | 3b624f87f34f554fddaf1977cf3b0c75b0ddfa29 (diff) |
ARM: tegra: power: trace C states and CPU mode switches
Original-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>
Rebase-Id: R341f7619d11f81fd7dfbab2ceb1c6fdaab6ead78
Diffstat (limited to 'arch/arm/mach-tegra/pm-t3.c')
-rw-r--r-- | arch/arm/mach-tegra/pm-t3.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/pm-t3.c b/arch/arm/mach-tegra/pm-t3.c index 0bf4a7d30495..26ca45d6ec94 100644 --- a/arch/arm/mach-tegra/pm-t3.c +++ b/arch/arm/mach-tegra/pm-t3.c @@ -31,6 +31,8 @@ #include <asm/cpu_pm.h> #include <asm/hardware/gic.h> +#include <trace/events/power.h> + #include "clock.h" #include "cpuidle.h" #include "gpio-names.h" @@ -298,6 +300,8 @@ int tegra_cluster_control(unsigned int us, unsigned int flags) if (!is_g_cluster_present()) return -EPERM; + trace_power_start(POWER_PSTATE, target_cluster, 0); + if (flags & TEGRA_POWER_CLUSTER_IMMEDIATE) us = 0; |