mirror of
https://github.com/lwfinger/rtl8188eu.git
synced 2025-06-23 16:44:20 +00:00
rtl8188eu: rtw_get_current_time() is jiffies
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
parent
209e50ad60
commit
61690cbca6
16 changed files with 46 additions and 53 deletions
|
@ -159,11 +159,6 @@ void _rtw_init_queue(struct __queue *pqueue)
|
|||
spin_lock_init(&(pqueue->lock));
|
||||
}
|
||||
|
||||
u32 rtw_get_current_time(void)
|
||||
{
|
||||
return jiffies;
|
||||
}
|
||||
|
||||
inline u32 rtw_systime_to_ms(u32 systime)
|
||||
{
|
||||
return systime * 1000 / HZ;
|
||||
|
@ -174,8 +169,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 the same unit as jiffies */
|
||||
inline s32 rtw_get_passing_time_ms(u32 start)
|
||||
{
|
||||
return rtw_systime_to_ms(jiffies-start);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue