summaryrefslogtreecommitdiff
path: root/arch/arm/mach-tegra/clock.c
diff options
context:
space:
mode:
authorPeter De Schrijver <pdeschrijver@nvidia.com>2011-06-06 15:03:16 +0300
committerDan Willemsen <dwillemsen@nvidia.com>2011-11-30 21:42:47 -0800
commite345544b8f6691a8648714e4e25ebacd5fe56dcf (patch)
tree67ee891cbf6b6fa2589f613a93e2a0d280843f9d /arch/arm/mach-tegra/clock.c
parent0e1bab3a090812944f1bb6cb3353279160b8f06f (diff)
ARM: tegra: remove calls to smp_processor_id()
smp_processor_id() only makes sense if the code can not move to a different CPU. The tegra clock code runs with IRQs enabled and preemption on, so it can move to a different CPU. Bug 827687 Change-Id: I8b3077c71966e535cc6ca2a2ec63eca0d7119777 Reviewed-on: http://git-master/r/35239 Reviewed-by: Peter De Schrijver <pdeschrijver@nvidia.com> Reviewed-by: Aleksandr Frid <afrid@nvidia.com> Reviewed-by: Scott Williams <scwilliams@nvidia.com> Tested-by: Peter De Schrijver <pdeschrijver@nvidia.com> Rebase-Id: R9fe292bc81ca5f456f1f54155febfa1e6e4d544e
Diffstat (limited to 'arch/arm/mach-tegra/clock.c')
-rw-r--r--arch/arm/mach-tegra/clock.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/arm/mach-tegra/clock.c b/arch/arm/mach-tegra/clock.c
index 42258c505fb3..cbe34d7a5c3b 100644
--- a/arch/arm/mach-tegra/clock.c
+++ b/arch/arm/mach-tegra/clock.c
@@ -252,7 +252,7 @@ static int clk_enable_locked(struct clk *c)
if (c->ops && c->ops->enable) {
ret = c->ops->enable(c);
- trace_clock_enable(c->name, 1, smp_processor_id());
+ trace_clock_enable(c->name, 1, 0);
if (ret) {
if (c->parent)
clk_disable(c->parent);
@@ -289,7 +289,7 @@ static void clk_disable_locked(struct clk *c)
}
if (c->refcnt == 1) {
if (c->ops && c->ops->disable) {
- trace_clock_disable(c->name, 0, smp_processor_id());
+ trace_clock_disable(c->name, 0, 0);
c->ops->disable(c);
}
if (c->parent)
@@ -430,7 +430,7 @@ int clk_set_rate_locked(struct clk *c, unsigned long rate)
goto out;
}
- trace_clock_set_rate(c->name, rate, smp_processor_id());
+ trace_clock_set_rate(c->name, rate, 0);
ret = c->ops->set_rate(c, rate);
if (ret)
goto out;