]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
x86: reduce clock calibration time during slave cpu startup
authorJack Steiner <steiner@sgi.com>
Wed, 16 Nov 2011 23:41:04 +0000 (10:41 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 17 Nov 2011 02:53:14 +0000 (13:53 +1100)
commit59b07fbfa3ec56842f10f8e42aed0dff7b5808fb
tree3b0c04724122fc762e6419f27c24a1107f5dd5af
parent801ab21a822c54e114ac445d3450e79cdc9751de
x86: reduce clock calibration time during slave cpu startup

Reduce the startup time for slave cpus.

Adds hooks for an arch-specific function for clock calibration.  These
hooks are used on x86.  If a newly started cpu has the same phys_proc_id
as a core already active, uses the TSC for the delay loop and has a
CONSTANT_TSC, use the already-calculated value of loops_per_jiffy.

This patch reduces the time required to start slave cpus on a 4096 cpu
system from: 465 sec OLD 62 sec NEW

This reduces boot time on a 4096p system by almost 7 minutes.  Nice...

[akpm@linux-foundation.org: fix CONFIG_SMP=n build]
Signed-off-by: Jack Steiner <steiner@sgi.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: John Stultz <john.stultz@linaro.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
arch/x86/kernel/smpboot.c
arch/x86/kernel/tsc.c
init/calibrate.c