diff options
Diffstat (limited to 'kernel/time/posix-cpu-timers.c')
-rw-r--r-- | kernel/time/posix-cpu-timers.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/kernel/time/posix-cpu-timers.c b/kernel/time/posix-cpu-timers.c index 76bea3a47d4b..082231cc7953 100644 --- a/kernel/time/posix-cpu-timers.c +++ b/kernel/time/posix-cpu-timers.c | |||
@@ -261,7 +261,7 @@ static int cpu_clock_sample_group(const clockid_t which_clock, | |||
261 | 261 | ||
262 | static int posix_cpu_clock_get_task(struct task_struct *tsk, | 262 | static int posix_cpu_clock_get_task(struct task_struct *tsk, |
263 | const clockid_t which_clock, | 263 | const clockid_t which_clock, |
264 | struct timespec *tp) | 264 | struct timespec64 *tp) |
265 | { | 265 | { |
266 | int err = -EINVAL; | 266 | int err = -EINVAL; |
267 | u64 rtn; | 267 | u64 rtn; |
@@ -275,13 +275,13 @@ static int posix_cpu_clock_get_task(struct task_struct *tsk, | |||
275 | } | 275 | } |
276 | 276 | ||
277 | if (!err) | 277 | if (!err) |
278 | *tp = ns_to_timespec(rtn); | 278 | *tp = ns_to_timespec64(rtn); |
279 | 279 | ||
280 | return err; | 280 | return err; |
281 | } | 281 | } |
282 | 282 | ||
283 | 283 | ||
284 | static int posix_cpu_clock_get(const clockid_t which_clock, struct timespec *tp) | 284 | static int posix_cpu_clock_get(const clockid_t which_clock, struct timespec64 *tp) |
285 | { | 285 | { |
286 | const pid_t pid = CPUCLOCK_PID(which_clock); | 286 | const pid_t pid = CPUCLOCK_PID(which_clock); |
287 | int err = -EINVAL; | 287 | int err = -EINVAL; |
@@ -1374,7 +1374,7 @@ static int process_cpu_clock_getres(const clockid_t which_clock, | |||
1374 | return posix_cpu_clock_getres(PROCESS_CLOCK, tp); | 1374 | return posix_cpu_clock_getres(PROCESS_CLOCK, tp); |
1375 | } | 1375 | } |
1376 | static int process_cpu_clock_get(const clockid_t which_clock, | 1376 | static int process_cpu_clock_get(const clockid_t which_clock, |
1377 | struct timespec *tp) | 1377 | struct timespec64 *tp) |
1378 | { | 1378 | { |
1379 | return posix_cpu_clock_get(PROCESS_CLOCK, tp); | 1379 | return posix_cpu_clock_get(PROCESS_CLOCK, tp); |
1380 | } | 1380 | } |
@@ -1399,7 +1399,7 @@ static int thread_cpu_clock_getres(const clockid_t which_clock, | |||
1399 | return posix_cpu_clock_getres(THREAD_CLOCK, tp); | 1399 | return posix_cpu_clock_getres(THREAD_CLOCK, tp); |
1400 | } | 1400 | } |
1401 | static int thread_cpu_clock_get(const clockid_t which_clock, | 1401 | static int thread_cpu_clock_get(const clockid_t which_clock, |
1402 | struct timespec *tp) | 1402 | struct timespec64 *tp) |
1403 | { | 1403 | { |
1404 | return posix_cpu_clock_get(THREAD_CLOCK, tp); | 1404 | return posix_cpu_clock_get(THREAD_CLOCK, tp); |
1405 | } | 1405 | } |