mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
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.
(cherry picked from commit cc2723370b)
This commit is contained in:
parent
9342ec5077
commit
20c9dcd2ed
1 changed files with 10 additions and 0 deletions
|
|
@ -73,4 +73,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_ */
|
||||
|
|
|
|||
Loading…
Reference in a new issue