staging: rtl8188eu: use jiffies_to_msecs() instead of rtw_systime_to_ms()
authornavin patidar <navin.patidar@gmail.com>
Thu, 10 Jul 2014 03:42:24 +0000 (09:12 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 10 Jul 2014 04:15:21 +0000 (21:15 -0700)
Signed-off-by: navin patidar <navin.patidar@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/include/osdep_service.h
drivers/staging/rtl8188eu/os_dep/osdep_service.c

index a52dcd56229b890fb6e1ac4f691d9003c05941ae..3ddaa34c761a4085685282cfe46e95e773a32599 100644 (file)
@@ -154,7 +154,6 @@ u32  _rtw_down_sema(struct semaphore *sema);
 
 void _rtw_init_queue(struct __queue *pqueue);
 
-u32  rtw_systime_to_ms(u32 systime);
 u32  rtw_ms_to_systime(u32 ms);
 s32  rtw_get_passing_time_ms(u32 start);
 
index 93c76d7e81810b941fdbc7abe6e1790991089122..96f8eb88b06d2ba43bbabc3547988572c8ad2fa8 100644 (file)
@@ -77,11 +77,6 @@ void _rtw_init_queue(struct __queue *pqueue)
        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)
 {
        return ms * HZ / 1000;
@@ -90,7 +85,7 @@ inline u32 rtw_ms_to_systime(u32 ms)
 /*  the input parameter start must be in jiffies */
 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,
This page took 0.025828 seconds and 5 git commands to generate.