diff options
Diffstat (limited to 'src/lib/delay.c')
-rw-r--r-- | src/lib/delay.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/lib/delay.c b/src/lib/delay.c new file mode 100644 index 0000000000..af5f78613e --- /dev/null +++ b/src/lib/delay.c @@ -0,0 +1,15 @@ +#include <delay.h> +void mdelay(int msecs) +{ + int i; + for(i = 0; i < msecs; i++) { + udelay(1000); + } +} +void delay(int secs) +{ + int i; + for(i = 0; i < secs; i++) { + mdelay(1000); + } +} |