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

This change “staging: rtl8188eu: use jiffies_to_msecs() instead of rtw_systime_to_ms()” (commit 7882538) in Linux kernel is authored by navin patidar <navin.patidar [at] gmail.com> on Thu Jul 10 09:12:24 2014 +0530.

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

The change “staging: rtl8188eu: use jiffies_to_msecs() instead of rtw_systime_to_ms()” introduces changes as follows.

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

Signed-off-by: navin patidar <navin.patidar@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

Linux kernel releases containing commit 7882538

The Linux kernel releases containing this commit are as follows.

Linux kernel code changes from "staging: rtl8188eu: use jiffies_to_msecs() instead of rtw_systime_to_ms()"

There are 8 lines of Linux source code added/deleted in this change. Code changes to Linux kernel are as follows.

 drivers/staging/rtl8188eu/include/osdep_service.h | 1 -
 drivers/staging/rtl8188eu/os_dep/osdep_service.c  | 7 +------
 2 files changed, 1 insertion(+), 7 deletions(-)
 
diff --git a/drivers/staging/rtl8188eu/include/osdep_service.h b/drivers/staging/rtl8188eu/include/osdep_service.h
index a52dcd56229b..3ddaa34c761a 100644
--- a/drivers/staging/rtl8188eu/include/osdep_service.h
+++ b/drivers/staging/rtl8188eu/include/osdep_service.h
@@ -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);
 
diff --git a/drivers/staging/rtl8188eu/os_dep/osdep_service.c b/drivers/staging/rtl8188eu/os_dep/osdep_service.c
index 93c76d7e8181..96f8eb88b06d 100644
--- a/drivers/staging/rtl8188eu/os_dep/osdep_service.c
+++ b/drivers/staging/rtl8188eu/os_dep/osdep_service.c
@@ -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,

The commit for this change in Linux stable tree is 7882538 (patch).

Last modified: 2020/02/10