]> git.baikalelectronics.ru Git - kernel.git/commit
[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)
commit584d9e56f13f7818064ff1138225ace882705750
tree940351af2d1690331d82a65331acf34254621936
parent6e7c88e411285f63c3c579eca21c9410e39102cc
[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