uboot/include/linux/delay.h
<<
>>
Prefs
   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
   8void __udelay(unsigned long usec);
   9void udelay(unsigned long usec);
  10
  11static inline void mdelay(unsigned long msec)
  12{
  13        udelay(1000 * msec);
  14}
  15
  16static inline void ndelay(unsigned long nsec)
  17{
  18        udelay(DIV_ROUND_UP(nsec, 1000));
  19}
  20
  21#endif /* defined(_LINUX_DELAY_H) */
  22