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:
Larry Finger 2021-08-05 14:26:44 -05:00 committed by Carlos Garcés
parent a5adfa895b
commit 9ad10523e3
2 changed files with 0 additions and 33 deletions

View File

@ -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);

View File

@ -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