.. | .. |
---|
46 | 46 | |
---|
47 | 47 | u64 _mali_osk_time_get_ns(void) |
---|
48 | 48 | { |
---|
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); |
---|
52 | 52 | } |
---|
53 | 53 | |
---|
54 | 54 | u64 _mali_osk_boot_time_get_ns(void) |
---|
55 | 55 | { |
---|
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); |
---|
59 | 59 | } |
---|