Skip to content

Commit

Permalink
x86: Move tsc_init to late_time_init
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Thomas Gleixner committed Aug 31, 2009
1 parent 2d82640 commit dd0a70c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/x86/kernel/time.c
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ void __init hpet_time_init(void)
static void x86_late_time_init(void)
{
x86_init.timers.timer_init();
tsc_init();
}

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

0 comments on commit dd0a70c

Please sign in to comment.