2 * i8253.c 8253/PIT functions
5 #include <linux/clockchips.h>
6 #include <linux/i8253.h>
7 #include <linux/export.h>
13 static irqreturn_t
timer_interrupt(int irq
, void *dev_id
)
15 i8253_clockevent
.event_handler(&i8253_clockevent
);
20 static struct irqaction irq0
= {
21 .handler
= timer_interrupt
,
22 .flags
= IRQF_NOBALANCING
| IRQF_TIMER
,
26 void __init
setup_pit_timer(void)
28 clockevent_i8253_init(true);
32 static int __init
init_pit_clocksource(void)
34 if (num_possible_cpus() > 1) /* PIT does not scale! */
37 return clocksource_i8253_init();
39 arch_initcall(init_pit_clocksource
);