Commit c6145e49 authored by Linus Torvalds's avatar Linus Torvalds Committed by Linus Torvalds

Add ndelay() compatibility macro. If the architecture

doesn't define ndelay(), fall back on udelay().
parent db8b50ba
...@@ -34,4 +34,8 @@ extern unsigned long loops_per_jiffy; ...@@ -34,4 +34,8 @@ extern unsigned long loops_per_jiffy;
({unsigned long msec=(n); while (msec--) udelay(1000);})) ({unsigned long msec=(n); while (msec--) udelay(1000);}))
#endif #endif
#ifndef ndelay
#define ndelay(x) udelay(((x)+999)/1000)
#endif
#endif /* defined(_LINUX_DELAY_H) */ #endif /* defined(_LINUX_DELAY_H) */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment