Skip to contentSkip to conversation

Fix mdelay's use of 'msec' name

PATCH New Benjamin Herrenschmidt 1 participant 1 message Aug 3, 2003 High-resolution timers, timer wheel, clockevents

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix mdelay's use of 'msec' name

===== include/linux/delay.h 1.2 vs edited =====

include/linux/delay.h +2 -2
@@ -27,11 +27,11 @@
 
 #ifdef notdef
 #define mdelay(n) (\
-	{unsigned long msec=(n); while (msec--) udelay(1000);})
+	{unsigned long __ms=(n); while (__ms--) udelay(1000);})
 #else
 #define mdelay(n) (\
 	(__builtin_constant_p(n) && (n)<=MAX_UDELAY_MS) ? udelay((n)*1000) : \
-	({unsigned long msec=(n); while (msec--) udelay(1000);}))
+	({unsigned long __ms=(n); while (__ms--) udelay(1000);}))
 #endif
 
 #ifndef ndelay