1 /* SPDX-License-Identifier: GPL-2.0+ */ 2 3 #ifndef _LINUX_DELAY_H 4 #define _LINUX_DELAY_H 5 6 #include <linux/kernel.h> 7 8 void __udelay(unsigned long usec); 9 void udelay(unsigned long usec); 10 11 static inline void mdelay(unsigned long msec) 12 { 13 udelay(1000 * msec); 14 } 15 16 static inline void ndelay(unsigned long nsec) 17 { 18 udelay(DIV_ROUND_UP(nsec, 1000)); 19 } 20 21 #endif /* defined(_LINUX_DELAY_H) */ 22