LinuxKPI: add fsleep()

Add fsleep() function now required by rtw88.  This seems to be
making a decision depending on time to sleep on how to sleep.
Given our compat framework already is lenient on how long to sleep,
this is a cut down version.

MFC after:	10 days
Reviewed by:	hselasky
Differential Revision: https://reviews.freebsd.org/D31322
This commit is contained in:
Bjoern A. Zeeb 2021-07-27 15:22:02 +00:00
parent ac134e762e
commit cc2723370b

View File

@ -76,4 +76,14 @@ usleep_range(unsigned long min, unsigned long max)
extern unsigned int linux_msleep_interruptible(unsigned int ms);
static inline void
fsleep(unsigned long us)
{
if (us < 10)
udelay(us);
else
usleep_range(us, us);
}
#endif /* _LINUX_DELAY_H_ */