mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 19:30:30 +09:00
staging: r8188eu: remove unused timer functions
rtw_get_passing_time_ms and rtw_systime_to_ms are not used any more. Remove them. Signed-off-by: Martin Kaiser <martin@kaiser.cx> Link: https://lore.kernel.org/r/20220413193654.258507-9-martin@kaiser.cx Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
b0a347be3f
commit
176735b4a2
@@ -77,9 +77,6 @@ void *rtw_malloc2d(int h, int w, int size);
|
||||
spin_lock_init(&((q)->lock)); \
|
||||
} while (0)
|
||||
|
||||
u32 rtw_systime_to_ms(u32 systime);
|
||||
s32 rtw_get_passing_time_ms(u32 start);
|
||||
|
||||
void rtw_usleep_os(int us);
|
||||
|
||||
static inline unsigned char _cancel_timer_ex(struct timer_list *ptimer)
|
||||
|
||||
@@ -42,17 +42,6 @@ Otherwise, there will be racing condition.
|
||||
Caller must check if the list is empty before calling rtw_list_delete
|
||||
*/
|
||||
|
||||
inline u32 rtw_systime_to_ms(u32 systime)
|
||||
{
|
||||
return systime * 1000 / HZ;
|
||||
}
|
||||
|
||||
/* 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);
|
||||
}
|
||||
|
||||
void rtw_usleep_os(int us)
|
||||
{
|
||||
if (1 < (us / 1000))
|
||||
|
||||
Reference in New Issue
Block a user