summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/delay.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/delay.h b/include/linux/delay.h
index fc57b1c8900a..1ddf999dab42 100644
--- a/include/linux/delay.h
+++ b/include/linux/delay.h
@@ -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) */