[RFC patch 32/32] x86: Move tsc_init to late_time_init

Thomas Gleixner
2009-08-21T21:34:01Z

[-- Attachment #1: x86-move-tsc-init-to-late-time-init.patch --]
[-- Type: text/plain, Size: 971 bytes --]

We do not need the TSC before late_time_init. Move the tsc_init to the
late time init code so we can also utilize HPET for calibration (which
we claimed to do but never did except in some older kernel
version). This also helps Moorestown to calibrate the TSC with the
AHBT timer which needs to be initialized in late_time_init like HPET.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
---
arch/x86/kernel/time.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Index: linux-2.6/arch/x86/kernel/time.c
===================================================================
--- linux-2.6.orig/arch/x86/kernel/time.c
+++ linux-2.6/arch/x86/kernel/time.c
@@ -107,6 +107,7 @@ void __init hpet_time_init(void)
static void x86_late_time_init(void)
{
platform_setup.timers.timer_init();
+ tsc_init();
}

/*
@@ -115,6 +116,5 @@ static void x86_late_time_init(void)
*/
void __init time_init(void)
{
- tsc_init();
late_time_init = x86_late_time_init;
}