patch-2.1.79 linux/arch/sparc/ap1000/timer.c

Next file: linux/arch/sparc/ap1000/tnet.c
Previous file: linux/arch/sparc/ap1000/msc.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.78/linux/arch/sparc/ap1000/timer.c linux/arch/sparc/ap1000/timer.c
@@ -73,6 +73,7 @@
 	last_freerun = new_freerun;
 }
 
+#ifdef CONFIG_PROFILE
 
 static void profile_interrupt(int irq, void *dev_id, struct pt_regs * regs)
 {
@@ -96,6 +97,8 @@
   }
 }
 
+#endif
+
 void ap_init_timers(void)
 {
 	extern void timer_interrupt(int irq, void *dev_id, struct pt_regs * regs);
@@ -109,11 +112,13 @@
 		    timer_interrupt,
 		    (SA_INTERRUPT | SA_STATIC_ALLOC),
 		    "timer", NULL);
-	
+
+#ifdef CONFIG_PROFILE	
 	request_irq(APTIM0_IRQ,
 		    profile_interrupt,
 		    (SA_INTERRUPT | SA_STATIC_ALLOC),
 		    "profile", NULL);
+#endif
 	
 	ap_clear_clock_irq();
 	

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov