Commit 4a956abc authored by Larry Finger's avatar Larry Finger Committed by Greg Kroah-Hartman
Browse files

staging: r8188eu: Remove wrapper rtw_sleep_schedulable()

parent 8b2403d0
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -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);
+0 −12
Original line number Diff line number Diff line
@@ -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))