diff options
author | Peter De Schrijver <pdeschrijver@nvidia.com> | 2011-06-06 15:03:16 +0300 |
---|---|---|
committer | Niket Sirsi <nsirsi@nvidia.com> | 2011-06-13 20:02:18 -0700 |
commit | 1669b8e7eb5f37edc7cc0942b981438286bed2d0 (patch) | |
tree | 3029b0ad87e2e4e094f5bc8dfafc743a308f7ef5 | |
parent | c7d3533bd203380702b3d50b06939133fca91f2e (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>
-rw-r--r-- | arch/arm/mach-tegra/clock.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/arm/mach-tegra/clock.c b/arch/arm/mach-tegra/clock.c index 26c472fd0a7b..bc2b50b983e3 100644 --- a/arch/arm/mach-tegra/clock.c +++ b/arch/arm/mach-tegra/clock.c @@ -292,7 +292,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); @@ -329,7 +329,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) @@ -478,7 +478,7 @@ int clk_set_rate(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; |