From e345544b8f6691a8648714e4e25ebacd5fe56dcf Mon Sep 17 00:00:00 2001 From: Peter De Schrijver Date: Mon, 6 Jun 2011 15:03:16 +0300 Subject: 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 Reviewed-by: Aleksandr Frid Reviewed-by: Scott Williams Tested-by: Peter De Schrijver Rebase-Id: R9fe292bc81ca5f456f1f54155febfa1e6e4d544e --- arch/arm/mach-tegra/clock.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'arch/arm/mach-tegra/clock.c') 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; -- cgit v1.2.3