summaryrefslogtreecommitdiff
path: root/arch/arm/mach-tegra/clock.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-tegra/clock.c')
-rw-r--r--arch/arm/mach-tegra/clock.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/arch/arm/mach-tegra/clock.c b/arch/arm/mach-tegra/clock.c
index 95dd9f499cd3..f73107a4ff37 100644
--- a/arch/arm/mach-tegra/clock.c
+++ b/arch/arm/mach-tegra/clock.c
@@ -29,6 +29,7 @@
#include <linux/seq_file.h>
#include <linux/slab.h>
#include <linux/uaccess.h>
+#include <trace/events/power.h>
#include <mach/clk.h>
@@ -255,6 +256,7 @@ int clk_enable(struct clk *c)
if (c->ops && c->ops->enable) {
ret = c->ops->enable(c);
+ trace_clock_enable(c->name, 1, smp_processor_id());
if (ret) {
if (c->parent)
clk_disable(c->parent);
@@ -284,9 +286,10 @@ void clk_disable(struct clk *c)
return;
}
if (c->refcnt == 1) {
- if (c->ops && c->ops->disable)
+ if (c->ops && c->ops->disable) {
+ trace_clock_disable(c->name, 0, smp_processor_id());
c->ops->disable(c);
-
+ }
if (c->parent)
clk_disable(c->parent);
@@ -385,6 +388,7 @@ int clk_set_rate_locked(struct clk *c, unsigned long rate)
return ret;
}
+ trace_clock_set_rate(c->name, rate, smp_processor_id());
ret = c->ops->set_rate(c, rate);
if (ret)
return ret;