]> www.infradead.org Git - users/jedix/linux-maple.git/commit
x86: Reduce clock calibration time during slave cpu startup
authorJack Steiner <steiner@sgi.com>
Fri, 10 Aug 2012 11:44:37 +0000 (04:44 -0700)
committerMaxim Uvarov <maxim.uvarov@oracle.com>
Fri, 10 Aug 2012 13:52:47 +0000 (06:52 -0700)
commit41b1698c1184eaaadca354d73f12e72210f875da
tree41453b4f65c716e740f6c4660efe0cdd520dcc1f
parent6486690d5106f8a24e8ad3f228798caf58a918fc
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: "H. Peter Anvin" <hpa@zytor.com>
Cc: John Stultz <john.stultz@linaro.org>
[fix CONFIG_SMP=n build]
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Conflicts:

init/calibrate.c
arch/x86/kernel/smpboot.c
arch/x86/kernel/tsc.c
init/calibrate.c