patch-2.3.48 linux/arch/mips/baget/time.c

Next file: linux/arch/mips/baget/vacserial.c
Previous file: linux/arch/mips/baget/setup.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.47/linux/arch/mips/baget/time.c linux/arch/mips/baget/time.c
@@ -1,4 +1,4 @@
-/* $Id$
+/* $Id: time.c,v 1.4 1999/10/09 00:00:57 ralf Exp $
  * time.c: Baget/MIPS specific time handling details
  *
  * Copyright (C) 1998 Gleb Raiko & Vladimir Roganov
@@ -63,14 +63,14 @@
 		 VIC_INT_LOW|VIC_INT_ENABLE, VIC_LINT2); 
 }
 
+static struct irqaction timer_irq  = 
+{ timer_interrupt, SA_INTERRUPT, 0, "timer", NULL, NULL};
+
 void __init time_init(void)
 {
-	if (request_irq(BAGET_VIC_TIMER_IRQ, timer_interrupt, 
-			SA_INTERRUPT|SA_STATIC_ALLOC, "timer", NULL) < 0) 
+	if (setup_baget_irq(BAGET_VIC_TIMER_IRQ, &timer_irq) < 0)
 		printk("time_init: unable request irq for system timer\n");
-
 	timer_enable();
-
 	/* We don't call sti() here, because it is too early for baget */
 }
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)