WIP FPC-III support
[linux/fpc-iii.git] / arch / powerpc / kernel / vdso64 / vgettimeofday.c
blob5b5500058344c7214dea120b0ee60e4717c2e897
1 // SPDX-License-Identifier: GPL-2.0
2 /*
3 * Powerpc userspace implementations of gettimeofday() and similar.
4 */
5 #include <linux/time.h>
6 #include <linux/types.h>
8 int __c_kernel_clock_gettime(clockid_t clock, struct __kernel_timespec *ts,
9 const struct vdso_data *vd)
11 return __cvdso_clock_gettime_data(vd, clock, ts);
14 int __c_kernel_gettimeofday(struct __kernel_old_timeval *tv, struct timezone *tz,
15 const struct vdso_data *vd)
17 return __cvdso_gettimeofday_data(vd, tv, tz);
20 int __c_kernel_clock_getres(clockid_t clock_id, struct __kernel_timespec *res,
21 const struct vdso_data *vd)
23 return __cvdso_clock_getres_data(vd, clock_id, res);
26 __kernel_old_time_t __c_kernel_time(__kernel_old_time_t *time, const struct vdso_data *vd)
28 return __cvdso_time_data(vd, time);