This source file includes following definitions.
- pit_timer_interrupt
- isa_timer_init
1
2
3
4
5
6
7
8 #include <linux/clockchips.h>
9 #include <linux/i8253.h>
10 #include <linux/init.h>
11 #include <linux/interrupt.h>
12 #include <linux/irq.h>
13 #include <linux/spinlock.h>
14 #include <linux/timex.h>
15
16 #include <asm/irq.h>
17 #include <asm/mach/time.h>
18
19 #include "common.h"
20
21 static irqreturn_t pit_timer_interrupt(int irq, void *dev_id)
22 {
23 struct clock_event_device *ce = dev_id;
24 ce->event_handler(ce);
25 return IRQ_HANDLED;
26 }
27
28 static struct irqaction pit_timer_irq = {
29 .name = "pit",
30 .handler = pit_timer_interrupt,
31 .flags = IRQF_TIMER | IRQF_IRQPOLL,
32 .dev_id = &i8253_clockevent,
33 };
34
35 void __init isa_timer_init(void)
36 {
37 clocksource_i8253_init();
38
39 setup_irq(i8253_clockevent.irq, &pit_timer_irq);
40 clockevent_i8253_init(false);
41 }