| * i8253.c 8253/PIT functions |
| #include <linux/clockchips.h> |
| #include <linux/export.h> |
| static irqreturn_t timer_interrupt(int irq, void *dev_id) |
| i8253_clockevent.event_handler(&i8253_clockevent); |
| static struct irqaction irq0 = { |
| .handler = timer_interrupt, |
| .flags = IRQF_NOBALANCING | IRQF_TIMER, |
| void __init setup_pit_timer(void) |
| clockevent_i8253_init(true); |
| static int __init init_pit_clocksource(void) |
| if (num_possible_cpus() > 1) /* PIT does not scale! */ |
| return clocksource_i8253_init(); |
| arch_initcall(init_pit_clocksource); |