2 * linux/arch/arm/mach-footbridge/isa-timer.c
4 * Copyright (C) 1998 Russell King.
5 * Copyright (C) 1998 Phil Blundell
7 #include <linux/clockchips.h>
8 #include <linux/i8253.h>
9 #include <linux/init.h>
10 #include <linux/interrupt.h>
11 #include <linux/irq.h>
12 #include <linux/spinlock.h>
13 #include <linux/timex.h>
16 #include <asm/mach/time.h>
20 static irqreturn_t
pit_timer_interrupt(int irq
, void *dev_id
)
22 struct clock_event_device
*ce
= dev_id
;
23 ce
->event_handler(ce
);
27 static struct irqaction pit_timer_irq
= {
29 .handler
= pit_timer_interrupt
,
30 .flags
= IRQF_DISABLED
| IRQF_TIMER
| IRQF_IRQPOLL
,
31 .dev_id
= &i8253_clockevent
,
34 void __init
isa_timer_init(void)
36 clocksource_i8253_init();
38 setup_irq(i8253_clockevent
.irq
, &pit_timer_irq
);
39 clockevent_i8253_init(false);