]> git.karo-electronics.de Git - karo-tx-linux.git/commit
For each CPU, do the calibration delay only once. For subsequent calls,
authorSameer Nanda <snanda@chromium.org>
Sat, 16 Jul 2011 13:31:12 +0000 (23:31 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 26 Jul 2011 05:05:20 +0000 (15:05 +1000)
commit415bfdae3f6b791a7a38d0c7d6570c89bb7e990e
tree7e2ea67fba046277f586ebcfe03023e4c8c03879
parentabccb56c7f828ec28a044a9f0aeb982099db9c00
For each CPU, do the calibration delay only once.  For subsequent calls,
use the cached per-CPU value of loops_per_jiffy.

This saves about 200ms of resume time on dual core Intel Atom N5xx based
systems.  This helps bring down the kernel resume time on such systems
from about 500ms to about 300ms.

Signed-off-by: Sameer Nanda <snanda@chromium.org>
Cc: Phil Carmody <ext-phil.2.carmody@nokia.com>
Cc: Andrew Worsley <amworsley@gmail.com>
Cc: David Daney <ddaney@caviumnetworks.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
init/calibrate.c