Title: [8207] trunk/arch/blackfin/include/asm/delay.h: task [#5359], Blackfin arch implement ndelay()
Revision
8207
Author
bhsong
Date
2010-01-21 02:20:44 -0500 (Thu, 21 Jan 2010)

Log Message

task [#5359], Blackfin arch implement ndelay()

Modified Paths

Diff

Modified: trunk/arch/blackfin/include/asm/delay.h (8206 => 8207)


--- trunk/arch/blackfin/include/asm/delay.h	2010-01-21 07:14:30 UTC (rev 8206)
+++ trunk/arch/blackfin/include/asm/delay.h	2010-01-21 07:20:44 UTC (rev 8207)
@@ -36,4 +36,12 @@
 	__delay((((usecs * HZSCALE) >> 11) * (loops_per_jiffy >> 11)) >> 6);
 }
 
+static inline void ndelay(unsigned long nsecs)
+{
+	extern unsigned long loops_per_jiffy;
+	__delay(((((1 * HZSCALE) >> 11) * (loops_per_jiffy >> 11)) >> 6) * nsecs / 1000);
+}
+
+#define ndelay ndelay
+
 #endif
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
https://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits

Reply via email to