diff mbox

[V6,2/7] arm/imx: cpufreq: remove loops_per_jiffy recalculate for smp

Message ID 1325213769-11752-3-git-send-email-richard.zhao@linaro.org
State New
Headers show

Commit Message

Richard Zhao Dec. 30, 2011, 2:56 a.m. UTC
arm registered cpufreq transition notifier to recalculate it.

Signed-off-by: Richard Zhao <richard.zhao@linaro.org>
---
 arch/arm/plat-mxc/cpufreq.c |   10 ----------
 1 files changed, 0 insertions(+), 10 deletions(-)

Comments

Richard Zhao Jan. 6, 2012, 12:56 a.m. UTC | #1
Hi Sascha & Shawn,

Could you look and ack the patch?

Thanks
Richard
Shawn Guo Jan. 6, 2012, 1:19 p.m. UTC | #2
On Fri, Jan 06, 2012 at 08:56:50AM +0800, Richard Zhao wrote:
> Hi Sascha & Shawn,
> 
> Could you look and ack the patch?
> 
The patch looks good to me.  But it really depends on how the patch #1
looks to Russell.
diff mbox

Patch

diff --git a/arch/arm/plat-mxc/cpufreq.c b/arch/arm/plat-mxc/cpufreq.c
index c937e75..364793a 100644
--- a/arch/arm/plat-mxc/cpufreq.c
+++ b/arch/arm/plat-mxc/cpufreq.c
@@ -99,16 +99,6 @@  static int mxc_set_target(struct cpufreq_policy *policy,
 
 	ret = set_cpu_freq(freq_Hz);
 
-#ifdef CONFIG_SMP
-	/* loops_per_jiffy is not updated by the cpufreq core for SMP systems.
-	 * So update it for all CPUs.
-	 */
-	for_each_possible_cpu(cpu)
-		per_cpu(cpu_data, cpu).loops_per_jiffy =
-		cpufreq_scale(per_cpu(cpu_data, cpu).loops_per_jiffy,
-					freqs.old, freqs.new);
-#endif
-
 	for_each_possible_cpu(cpu) {
 		freqs.cpu = cpu;
 		cpufreq_notify_transition(&freqs, CPUFREQ_POSTCHANGE);