aboutsummaryrefslogtreecommitdiffstats
path: root/arch/i386/kernel/time.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/i386/kernel/time.c')
-rw-r--r--arch/i386/kernel/time.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/arch/i386/kernel/time.c b/arch/i386/kernel/time.c
index 2883a4d4f01f..46c35ec9137d 100644
--- a/arch/i386/kernel/time.c
+++ b/arch/i386/kernel/time.c
@@ -444,8 +444,8 @@ static int time_init_device(void)
444 444
445device_initcall(time_init_device); 445device_initcall(time_init_device);
446 446
447#ifdef CONFIG_HPET_TIMER
448extern void (*late_time_init)(void); 447extern void (*late_time_init)(void);
448#ifdef CONFIG_HPET_TIMER
449/* Duplicate of time_init() below, with hpet_enable part added */ 449/* Duplicate of time_init() below, with hpet_enable part added */
450static void __init hpet_time_init(void) 450static void __init hpet_time_init(void)
451{ 451{
@@ -462,6 +462,11 @@ static void __init hpet_time_init(void)
462 printk(KERN_INFO "Using %s for high-res timesource\n",cur_timer->name); 462 printk(KERN_INFO "Using %s for high-res timesource\n",cur_timer->name);
463 463
464 time_init_hook(); 464 time_init_hook();
465
466#ifdef CONFIG_X86_LOCAL_APIC
467 if (enable_local_apic >= 0)
468 APIC_late_time_init();
469#endif
465} 470}
466#endif 471#endif
467 472
@@ -486,4 +491,9 @@ void __init time_init(void)
486 printk(KERN_INFO "Using %s for high-res timesource\n",cur_timer->name); 491 printk(KERN_INFO "Using %s for high-res timesource\n",cur_timer->name);
487 492
488 time_init_hook(); 493 time_init_hook();
494
495#ifdef CONFIG_X86_LOCAL_APIC
496 if (enable_local_apic >= 0)
497 late_time_init = APIC_late_time_init;
498#endif
489} 499}