patch-2.4.4 linux/include/asm-arm/arch-cl7500/time.h

Next file: linux/include/asm-arm/arch-cl7500/uncompress.h
Previous file: linux/include/asm-arm/arch-cl7500/system.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.3/linux/include/asm-arm/arch-cl7500/time.h linux/include/asm-arm/arch-cl7500/time.h
@@ -13,18 +13,17 @@
 {
 	do_timer(regs);
 	do_set_rtc();
+	do_profile(regs);
 
 	{
 		/* Twinkle the lights. */
-		static int count, state = 0xff;
+		static int count, state = 0xff00;
 		if (count-- == 0) {
-			state ^= 1;
+			state ^= 0x100;
 			count = 25;
-			*((volatile unsigned int *)(0xe002ba00)) = state;
+			*((volatile unsigned int *)LED_ADDRESS) = state;
 		}
 	}
-
-	do_profile(regs);
 }
 
 /*
@@ -32,6 +31,9 @@
  */
 extern __inline__ void setup_timer(void)
 {
+	extern void ioctime_init(void);
+	ioctime_init();
+
 	timer_irq.handler = timer_interrupt;
 
 	setup_arm_irq(IRQ_TIMER, &timer_irq);

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