Forum Discussion
BWint9
New Contributor
6 years agoI have attached updates to the device driver. These updates modify the timer resolution from usec to nsec. These changes resolved the issues I was having with the deprecated do_gettimeofday function.
Hiroto_K_Intel
New Contributor
6 years agoHello,
Firstly, we didn't evaluate kernel 5.x for the OpenCL kernel drivers and later your issue will be resolved for the future version.
On the other hand, I believe your workaround is good because it is based on the descriptions in Linux kernel site.
"truct timeval do_gettimeofday (void)
ktime_get_real_ts64() is a direct replacement, but consider using monotonic time (ktime_get_ts64()) and/or a ktime_t based interface (ktime_get()/ktime_get_real())."
Again, please note it is not fully tested now.