pit_ce.mode != CLOCK_EVT_MODE_PERIODIC)
return 0;
- return clocksource_register_hz(&pit_cs, CLOCK_TICK_RATE);
+ return clocksource_i8253_init();
}
arch_initcall(init_pit_clocksource);
--
#endif /* !CONFIG_X86_64 */
static void lguest_time_init(void)
{
/* Set up the timer interrupt (0) to go to our simple timer routine */
- set_irq_handler(0, lguest_time_irq);
+ irq_set_handler(0, lguest_time_irq);
- clocksource_register(&lguest_clock);
+ clocksource_register_hz(&lguest_clock, NSEC_PER_SEC);
/* We can't set cpumask in the initializer: damn C limitations! Set it
* here and register our timer device. */