hc
2024-05-16 8d2a02b24d66aa359e83eebc1ed3c0f85367a1cb
kernel/drivers/gpu/arm/mali400/mali/linux/mali_osk_time.c
....@@ -46,14 +46,14 @@
4646
4747 u64 _mali_osk_time_get_ns(void)
4848 {
49
- struct timespec tsval;
50
- getnstimeofday(&tsval);
51
- return (u64)timespec_to_ns(&tsval);
49
+ struct timespec64 tsval;
50
+ ktime_get_real_ts64(&tsval);
51
+ return (u64)timespec64_to_ns(&tsval);
5252 }
5353
5454 u64 _mali_osk_boot_time_get_ns(void)
5555 {
56
- struct timespec tsval;
57
- get_monotonic_boottime(&tsval);
58
- return (u64)timespec_to_ns(&tsval);
56
+ struct timespec64 tsval;
57
+ ktime_get_boottime_ts64(&tsval);
58
+ return (u64)timespec64_to_ns(&tsval);
5959 }