]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
ENGR00234217 cpufreq:fix loops_per_jiffy wrong on new suspend flow of cpufreq
authorRobin Gong <b38343@freescale.com>
Tue, 20 Nov 2012 07:08:12 +0000 (15:08 +0800)
committerLothar Waßmann <LW@KARO-electronics.de>
Fri, 24 May 2013 06:35:44 +0000 (08:35 +0200)
commitd8cd0e49afe10d2d77982599c7fc78aa4383816d
treeb6bae0c05eb73ca14f4c9ad4e9a21b945d94fb35
parentd0adbc93aacb1775adb7c67b513399ea243b463d
ENGR00234217 cpufreq:fix loops_per_jiffy wrong on new suspend flow of cpufreq

Currently, we use pm_notifier to enter suspend/resume flow. But in the notifier
we only set cpufreq, didn't tell CPUFREQ core what the current cpufreq setting
now. So in the next time if CPUFREQ core find the current cpu frequncy is not
the value that CPUFREQ core want to set before. CPUFREQ core will force to set
the freqs.old with its own rule, which means the freqs.old will be MODIFYED
unexpectedly, and this will cause wrong loops_per_jiffy. We need add cpufreq_
notify_transition in the suspend/resume interface of cpufreq.

Signed-off-by: Robin Gong <b38343@freescale.com>
arch/arm/plat-mxc/cpufreq.c