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

Next file: linux/include/asm-arm/arch-nexuspci/dma.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.3.48/linux/include/asm-arm/arch-cl7500/time.h linux/include/asm-arm/arch-cl7500/time.h
@@ -17,12 +17,11 @@
 
 	{
 		/* Twinkle the lights. */
-		static int count, bit = 8, dir = 1;
+		static int count, state = 0xff;
 		if (count-- == 0) {
-			bit += dir;
-			if (bit == 8 || bit == 15) dir = -dir;
-			count = 5;
-			*((volatile unsigned int *)(0xe002ba00)) = 1 << bit;
+			state ^= 1;
+			count = 25;
+			*((volatile unsigned int *)(0xe002ba00)) = state;
 		}
 	}
 

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