rtl8188eu: Remove wrapper routine rtw_get_current_time()

This wrapper can be replaced with jiffies.

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
Larry Finger 2015-08-15 16:34:17 -05:00
parent e6a0d110e4
commit 1e6accffc4
21 changed files with 67 additions and 82 deletions

View file

@ -282,7 +282,7 @@ void rtw_mstat_update(const enum mstat_f flags, const MSTAT_STATUS status, u32 s
/* if (rtw_get_passing_time_ms(update_time) > 5000) { */
/* rtw_mstat_dump(); */
update_time=rtw_get_current_time();
update_time=jiffies;
/* */
}
@ -663,11 +663,6 @@ u32 rtw_end_of_queue_search(struct list_head *head, struct list_head *plist)
}
u32 rtw_get_current_time(void)
{
return jiffies;
}
inline u32 rtw_systime_to_ms(u32 systime)
{
return systime * 1000 / HZ;
@ -678,7 +673,7 @@ inline u32 rtw_ms_to_systime(u32 ms)
return ms * HZ / 1000;
}
/* the input parameter start use the same unit as returned by rtw_get_current_time */
/* the input parameter start use jiffies */
inline s32 rtw_get_passing_time_ms(u32 start)
{
return rtw_systime_to_ms(jiffies-start);