]> git.karo-electronics.de Git - karo-tx-linux.git/commit
init: skip calibration delay if previously done
authorSameer Nanda <snanda@chromium.org>
Tue, 26 Jul 2011 00:13:29 +0000 (17:13 -0700)
committerOliver Wendt <ow@karo-electronics.de>
Mon, 30 Sep 2013 12:12:02 +0000 (14:12 +0200)
commitdc313a7572e2b8c55d25e8f29ec9ee5f87c757b6
tree9f435f5313994b8ec94bee7828da79ca31e14a49
parent7b65427e5b02c8ad6421d8637a1de7f8a9bd26a3
init: skip calibration delay if previously done

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.

[akpm@linux-foundation.org: make cpu_loops_per_jiffy static]
[akpm@linux-foundation.org: clean up message text]
[akpm@linux-foundation.org: fix things up after upstream rmk changes]
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>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
init/calibrate.c