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

From: Thomas Gleixner
Date: Fri Aug 21 2009 - 17:34:09 EST


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@xxxxxxxxxxxxx>
---
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;
}


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/