mirror of
https://github.com/lwfinger/rtl8188eu.git
synced 2024-11-15 01:19:36 +00:00
rtl8188eu: Fix missing divide routine for 32-bit systems
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
parent
a95d70956a
commit
32e894d44f
1 changed files with 2 additions and 2 deletions
|
@ -350,9 +350,9 @@ static const struct ieee80211_txrx_stypes
|
|||
static u64 rtw_get_systime_us(void)
|
||||
{
|
||||
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 20, 0))
|
||||
ktime_t ts;
|
||||
u64 ts;
|
||||
ts = ktime_get_boottime();
|
||||
return ts / 1000;
|
||||
return do_div(ts, 1000);
|
||||
#elif (LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 39))
|
||||
struct timespec ts;
|
||||
get_monotonic_boottime(&ts);
|
||||
|
|
Loading…
Reference in a new issue