]> git.karo-electronics.de Git - karo-tx-linux.git/commit
x86: reduce clock calibration time during slave cpu startup
authorJack Steiner <steiner@sgi.com>
Wed, 30 Nov 2011 04:03:07 +0000 (15:03 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 30 Nov 2011 04:13:34 +0000 (15:13 +1100)
commit1d35744b7dbd996a5b998663491c49fa11f309be
tree36b0c5f19b3bed8a73fb450ba118940bd73ac1ca
parent5c8319540538d2cadbe06605b4e912fdabea8ebc
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