Commit 78825386 authored by navin patidar's avatar navin patidar Committed by Greg Kroah-Hartman

staging: rtl8188eu: use jiffies_to_msecs() instead of rtw_systime_to_ms()

Signed-off-by: default avatarnavin patidar <navin.patidar@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 73d474a9
...@@ -154,7 +154,6 @@ u32 _rtw_down_sema(struct semaphore *sema); ...@@ -154,7 +154,6 @@ u32 _rtw_down_sema(struct semaphore *sema);
void _rtw_init_queue(struct __queue *pqueue); void _rtw_init_queue(struct __queue *pqueue);
u32 rtw_systime_to_ms(u32 systime);
u32 rtw_ms_to_systime(u32 ms); u32 rtw_ms_to_systime(u32 ms);
s32 rtw_get_passing_time_ms(u32 start); s32 rtw_get_passing_time_ms(u32 start);
......
...@@ -77,11 +77,6 @@ void _rtw_init_queue(struct __queue *pqueue) ...@@ -77,11 +77,6 @@ void _rtw_init_queue(struct __queue *pqueue)
spin_lock_init(&(pqueue->lock)); spin_lock_init(&(pqueue->lock));
} }
inline u32 rtw_systime_to_ms(u32 systime)
{
return systime * 1000 / HZ;
}
inline u32 rtw_ms_to_systime(u32 ms) inline u32 rtw_ms_to_systime(u32 ms)
{ {
return ms * HZ / 1000; return ms * HZ / 1000;
...@@ -90,7 +85,7 @@ inline u32 rtw_ms_to_systime(u32 ms) ...@@ -90,7 +85,7 @@ inline u32 rtw_ms_to_systime(u32 ms)
/* the input parameter start must be in jiffies */ /* the input parameter start must be in jiffies */
inline s32 rtw_get_passing_time_ms(u32 start) inline s32 rtw_get_passing_time_ms(u32 start)
{ {
return rtw_systime_to_ms(jiffies-start); return jiffies_to_msecs(jiffies-start);
} }
struct net_device *rtw_alloc_etherdev_with_old_priv(int sizeof_priv, struct net_device *rtw_alloc_etherdev_with_old_priv(int sizeof_priv,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment