mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-08 15:14:30 -04:00
staging: r8188eu: Remove wrapper rtw_sleep_schedulable()
This wrapper is never used. Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net> Link: https://lore.kernel.org/r/20210805192644.15978-6-Larry.Finger@lwfinger.net Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
8b2403d0d3
commit
4a956abc17
@@ -229,8 +229,6 @@ u32 rtw_systime_to_ms(u32 systime);
|
||||
u32 rtw_ms_to_systime(u32 ms);
|
||||
s32 rtw_get_passing_time_ms(u32 start);
|
||||
|
||||
void rtw_sleep_schedulable(int ms);
|
||||
|
||||
void rtw_usleep_os(int us);
|
||||
|
||||
u32 rtw_atoi(u8 *s);
|
||||
|
||||
@@ -116,18 +116,6 @@ inline s32 rtw_get_passing_time_ms(u32 start)
|
||||
return rtw_systime_to_ms(jiffies-start);
|
||||
}
|
||||
|
||||
void rtw_sleep_schedulable(int ms)
|
||||
{
|
||||
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;
|
||||
}
|
||||
|
||||
void rtw_usleep_os(int us)
|
||||
{
|
||||
if (1 < (us/1000))
|
||||
|
||||
Reference in New Issue
Block a user