mirror of
https://github.com/Mange/rtl8192eu-linux-driver
synced 2024-11-25 23:15:00 +00:00
Remove wrapper rtw_sleep_schedulable()
This wrapper is never used. Link: https://lore.kernel.org/r/20210805192644.15978-6-Larry.Finger@lwfinger.net
This commit is contained in:
parent
a5adfa895b
commit
9ad10523e3
@ -362,8 +362,6 @@ extern bool _rtw_time_after(systime a, systime b);
|
||||
#define rtw_time_before(a,b) _rtw_time_after(b,a)
|
||||
#endif
|
||||
|
||||
extern void rtw_sleep_schedulable(int ms);
|
||||
|
||||
extern void rtw_usleep_os(int us);
|
||||
|
||||
extern u32 rtw_atoi(u8 *s);
|
||||
|
@ -1545,37 +1545,6 @@ inline bool _rtw_time_after(systime a, systime b)
|
||||
#endif
|
||||
}
|
||||
|
||||
void rtw_sleep_schedulable(int ms)
|
||||
{
|
||||
|
||||
#ifdef PLATFORM_LINUX
|
||||
|
||||
u32 delta;
|
||||
|
||||
delta = (ms * HZ) / 1000; /* (ms) */
|
||||
if (delta == 0) {
|
||||
delta = 1;/* 1 ms */
|
||||
}
|
||||
set_current_state(TASK_INTERRUPTIBLE);
|
||||
if (schedule_timeout(delta) != 0)
|
||||
return ;
|
||||
return;
|
||||
|
||||
#endif
|
||||
#ifdef PLATFORM_FREEBSD
|
||||
DELAY(ms * 1000);
|
||||
return ;
|
||||
#endif
|
||||
|
||||
#ifdef PLATFORM_WINDOWS
|
||||
|
||||
NdisMSleep(ms * 1000); /* (us)*1000=(ms) */
|
||||
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
|
||||
void rtw_usleep_os(int us)
|
||||
{
|
||||
#ifdef PLATFORM_LINUX
|
||||
|
Loading…
Reference in New Issue
Block a user