]> git.karo-electronics.de Git - karo-tx-linux.git/commit
x86: reduce clock calibration time during slave cpu startup
authorJack Steiner <steiner@sgi.com>
Mon, 24 Oct 2011 14:53:34 +0000 (01:53 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 7 Nov 2011 02:40:18 +0000 (13:40 +1100)
commit3891a84ac941a2a65cca45a27632401d14db367b
tree3f62bfd5489d23e8598341e43b7022dc9cd9c09d
parent5cdb329ea85275990c3992c1d3a66ff8381bf577
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...

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