x86: Fix compilation bug in kprobes' twobyte_is_boostable
[linux-btrfs-devel.git] / arch / arm / mach-footbridge / isa-timer.c
blobc40bb415f4b59bc1992a08a6a2b8547c8a835399
1 /*
2 * linux/arch/arm/mach-footbridge/isa-timer.c
4 * Copyright (C) 1998 Russell King.
5 * Copyright (C) 1998 Phil Blundell
6 */
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>
15 #include <asm/irq.h>
16 #include <asm/mach/time.h>
18 #include "common.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);
24 return IRQ_HANDLED;
27 static struct irqaction pit_timer_irq = {
28 .name = "pit",
29 .handler = pit_timer_interrupt,
30 .flags = IRQF_DISABLED | IRQF_TIMER | IRQF_IRQPOLL,
31 .dev_id = &i8253_clockevent,
34 static void __init isa_timer_init(void)
36 clocksource_i8253_init();
38 setup_irq(i8253_clockevent.irq, &pit_timer_irq);
39 clockevent_i8253_init(false);
42 struct sys_timer isa_timer = {
43 .init = isa_timer_init,