patch-2.4.0-test3 linux/arch/mips/sgi/kernel/time.c
Next file: linux/arch/mips/sni/pci.c
Previous file: linux/arch/mips/sgi/kernel/setup.c
Back to the patch index
Back to the overall index
- Lines: 31
- Date:
Sun Jul 9 22:18:15 2000
- Orig file:
v2.4.0-test2/linux/arch/mips/sgi/kernel/time.c
- Orig date:
Tue May 23 15:31:33 2000
diff -u --recursive --new-file v2.4.0-test2/linux/arch/mips/sgi/kernel/time.c linux/arch/mips/sgi/kernel/time.c
@@ -1,15 +1,21 @@
-/* $Id: time.c,v 1.2 1998/04/05 11:24:00 ralf Exp $
- * time.c: Generic SGI time_init() code, this will dispatch to the
- * appropriate per-architecture time/counter init code.
+/*
+ * time.c: Generic SGI handler for (spurious) 8254 interrupts
*
* Copyright (C) 1996 David S. Miller (dm@engr.sgi.com)
*/
-#include <linux/init.h>
+#include <linux/interrupt.h>
+#include <linux/kernel_stat.h>
+#include <asm/sgialib.h>
-extern void indy_timer_init(void);
-
-void __init time_init(void)
+void indy_8254timer_irq(void)
{
- /* XXX assume INDY for now XXX */
- indy_timer_init();
+ int cpu = smp_processor_id();
+ int irq = 4;
+
+ irq_enter(cpu);
+ kstat.irqs[0][irq]++;
+ printk("indy_8254timer_irq: Whoops, should not have gotten this IRQ\n");
+ prom_getchar();
+ prom_imode();
+ irq_exit(cpu);
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)