Skip to content
Snippets Groups Projects
Commit dd0a70c8 authored by Thomas Gleixner's avatar Thomas Gleixner
Browse files

x86: Move tsc_init to late_time_init


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: default avatarThomas Gleixner <tglx@linutronix.de>
parent 2d826404
No related branches found
No related tags found
No related merge requests found
......@@ -108,6 +108,7 @@ void __init hpet_time_init(void)
static void x86_late_time_init(void)
{
x86_init.timers.timer_init();
tsc_init();
}
/*
......@@ -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% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment