Microsecond timers for Indy. From Keith Wesolowsky.
[linux-2.6/linux-mips.git] / arch / mips / sgi / kernel / time.c
blobea85b75db017ecac9ace9fece39f9c24b43ec505
1 /*
2 * time.c: Generic SGI handler for (spurious) 8254 interrupts
4 * Copyright (C) 1996 David S. Miller (dm@engr.sgi.com)
5 */
6 #include <linux/interrupt.h>
7 #include <linux/kernel_stat.h>
8 #include <asm/sgialib.h>
10 void indy_8254timer_irq(void)
12 int cpu = smp_processor_id();
13 int irq = 4;
15 irq_enter(cpu);
16 kstat.irqs[0][irq]++;
17 printk("indy_8254timer_irq: Whoops, should not have gotten this IRQ\n");
18 prom_getchar();
19 prom_imode();
20 irq_exit(cpu);