d0e3fc69d0
Provides __kernel_clock_gettime64() on vdso32. This is the 64 bits version of __kernel_clock_gettime() which is y2038 compliant. Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/20201126131006.2431205-9-mpe@ellerman.id.au
35 lines
954 B
C
35 lines
954 B
C
// SPDX-License-Identifier: GPL-2.0
|
|
/*
|
|
* Powerpc userspace implementations of gettimeofday() and similar.
|
|
*/
|
|
#include <linux/types.h>
|
|
|
|
int __c_kernel_clock_gettime(clockid_t clock, struct old_timespec32 *ts,
|
|
const struct vdso_data *vd)
|
|
{
|
|
return __cvdso_clock_gettime32_data(vd, clock, ts);
|
|
}
|
|
|
|
int __c_kernel_clock_gettime64(clockid_t clock, struct __kernel_timespec *ts,
|
|
const struct vdso_data *vd)
|
|
{
|
|
return __cvdso_clock_gettime_data(vd, clock, ts);
|
|
}
|
|
|
|
int __c_kernel_gettimeofday(struct __kernel_old_timeval *tv, struct timezone *tz,
|
|
const struct vdso_data *vd)
|
|
{
|
|
return __cvdso_gettimeofday_data(vd, tv, tz);
|
|
}
|
|
|
|
int __c_kernel_clock_getres(clockid_t clock_id, struct old_timespec32 *res,
|
|
const struct vdso_data *vd)
|
|
{
|
|
return __cvdso_clock_getres_time32_data(vd, clock_id, res);
|
|
}
|
|
|
|
__kernel_old_time_t __c_kernel_time(__kernel_old_time_t *time, const struct vdso_data *vd)
|
|
{
|
|
return __cvdso_time_data(vd, time);
|
|
}
|