Lines 14-19
Link Here
|
14 |
#include "os-interface.h" |
14 |
#include "os-interface.h" |
15 |
#include "nv-linux.h" |
15 |
#include "nv-linux.h" |
16 |
|
16 |
|
|
|
17 |
#if LINUX_VERSION_CODE >= KERNEL_VERSION(5, 0, 0) |
18 |
static inline void do_gettimeofday(struct timeval *tv) |
19 |
{ |
20 |
struct timespec64 now; |
21 |
ktime_get_real_ts64(&now); |
22 |
tv->tv_sec = now.tv_sec; |
23 |
tv->tv_usec = now.tv_nsec/1000; |
24 |
} |
25 |
#endif |
26 |
|
17 |
RM_STATUS NV_API_CALL os_disable_console_access(void) |
27 |
RM_STATUS NV_API_CALL os_disable_console_access(void) |
18 |
{ |
28 |
{ |
19 |
NV_ACQUIRE_CONSOLE_SEM(); |
29 |
NV_ACQUIRE_CONSOLE_SEM(); |