]> git.karo-electronics.de Git - karo-tx-linux.git/commit
x86: reduce clock calibration time during slave cpu startup
authorJack Steiner <steiner@sgi.com>
Tue, 8 Nov 2011 00:19:55 +0000 (11:19 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 16 Nov 2011 01:46:52 +0000 (12:46 +1100)
commitf25e21afe6675372e409b0bcecb4f9349e3ce8ef
tree9a0b5064ed2be3aa54387ae521f8a75a0e573d72
parent54b30eb2e4e85e6aa9680e93a1bea71062e72247
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