mirror of
https://github.com/Mange/rtl8192eu-linux-driver
synced 2024-11-22 13:35:00 +00:00
Merge pull request #107 from MilhouseVH/fix-4.20-rc1
Fix build with 4.20-rc1
This commit is contained in:
commit
6315416908
@ -357,7 +357,9 @@ rtw_cfg80211_default_mgmt_stypes[NUM_NL80211_IFTYPES] = {
|
|||||||
|
|
||||||
static u64 rtw_get_systime_us(void)
|
static u64 rtw_get_systime_us(void)
|
||||||
{
|
{
|
||||||
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,39))
|
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,20,0))
|
||||||
|
return ktime_to_us(ktime_get_boottime());
|
||||||
|
#elif (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,39))
|
||||||
struct timespec ts;
|
struct timespec ts;
|
||||||
get_monotonic_boottime(&ts);
|
get_monotonic_boottime(&ts);
|
||||||
return ((u64)ts.tv_sec*1000000) + ts.tv_nsec / 1000;
|
return ((u64)ts.tv_sec*1000000) + ts.tv_nsec / 1000;
|
||||||
|
Loading…
Reference in New Issue
Block a user