[PATCH] x86_64: Move the SMP time selection earlier
authorAndi Kleen <ak@suse.de>
Sun, 26 Feb 2006 03:18:49 +0000 (04:18 +0100)
committerLinus Torvalds <torvalds@g5.osdl.org>
Sun, 26 Feb 2006 17:53:31 +0000 (09:53 -0800)
commite8b917775b572bc27de105f1317c2de4335db5b3
tree940351af2d1690331d82a65331acf34254621936
parente2c0388866dc12bef56b178b958f9b778fe6c687
[PATCH] x86_64: Move the SMP time selection earlier

SMP time selection originally ran after all CPUs were brought up because
it needed to know the number of CPUs to decide if it needs an MP safe
timer or not.

This is not needed anymore because we know present CPUs early.

This fixes a couple of problems:
 - apicmaintimer didn't always work because it relied on state that was
   set up time_init_gtod too late.
 - The output for the used timer in early kernel log was misleading
   because time_init_gtod could actually change it later.  Now always
   print the final timer choice

Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/x86_64/kernel/smpboot.c
arch/x86_64/kernel/time.c
include/asm-x86_64/proto.h