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;
({unsigned long msec=(n); while (msec--) udelay(1000);}))
#endif
#ifndef ndelay
#define ndelay(x) udelay(((x)+999)/1000)
#endif
#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