]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ENGR00221902 [MX6]Fix udelay inaccurate issue during suspend/resume
authorAnson Huang <b20788@freescale.com>
Wed, 29 Aug 2012 19:10:07 +0000 (03:10 +0800)
committerOliver Wendt <ow@karo-electronics.de>
Mon, 30 Sep 2013 12:12:53 +0000 (14:12 +0200)
commit92a0304114c4bbafa83a07221a5b0523eba93239
tree52dd09f870f9a7b7dc921e303dbdf72d042ddf6d
parent224c0495cc3ef1f42baad8c343df43bcaf8e35dc
ENGR00221902 [MX6]Fix udelay inaccurate issue during suspend/resume

When system enter suspend, we increase CPUFreq to the highest point
without update the global loops_per_jiffy, it will lead to udelay
inaccurate during the last phase of suspend/resume.

WB counter and RBC counter need at least two 32K cycles to finish,
here we add 80us for safe.

Signed-off-by: Anson Huang <b20788@freescale.com>
arch/arm/mach-mx6/system.c
arch/arm/plat-mxc/cpufreq.c