]> 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)
committerLothar Waßmann <LW@KARO-electronics.de>
Fri, 24 May 2013 06:35:20 +0000 (08:35 +0200)
commit5397205b07d67f393b6d0b8260a643c080aac1b7
tree52dd09f870f9a7b7dc921e303dbdf72d042ddf6d
parentfacd7442eaeefc2ca2729bc8db8fce43d8766d2e
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