summaryrefslogtreecommitdiff
path: root/arch/arm/mach-tegra/clock.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-tegra/clock.h')
-rw-r--r--arch/arm/mach-tegra/clock.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/clock.h b/arch/arm/mach-tegra/clock.h
index d2e510818042..754a3fbaef20 100644
--- a/arch/arm/mach-tegra/clock.h
+++ b/arch/arm/mach-tegra/clock.h
@@ -69,6 +69,7 @@
#include <linux/list.h>
#include <linux/mutex.h>
#include <linux/spinlock.h>
+#include <trace/events/power.h>
#include <asm/cputime.h>
#include <mach/clk.h>
@@ -286,6 +287,7 @@ static inline bool clk_cansleep(struct clk *c)
static inline void clk_lock_save(struct clk *c, unsigned long *flags)
{
+ trace_clock_lock(c->name, c->rate, smp_processor_id());
if (clk_cansleep(c)) {
*flags = 0;
mutex_lock(&c->mutex);
@@ -300,6 +302,7 @@ static inline void clk_unlock_restore(struct clk *c, unsigned long *flags)
mutex_unlock(&c->mutex);
else
spin_unlock_irqrestore(&c->spinlock, *flags);
+ trace_clock_unlock(c->name, c->rate, smp_processor_id());
}
static inline void clk_lock_init(struct clk *c)