162306a36Sopenharmony_ci// SPDX-License-Identifier: GPL-2.0-or-later
262306a36Sopenharmony_ci/*
362306a36Sopenharmony_ci * LoongArch userspace implementations of gettimeofday() and similar.
462306a36Sopenharmony_ci *
562306a36Sopenharmony_ci * Copyright (C) 2020-2022 Loongson Technology Corporation Limited
662306a36Sopenharmony_ci */
762306a36Sopenharmony_ci#include <linux/types.h>
862306a36Sopenharmony_ci
962306a36Sopenharmony_ciextern
1062306a36Sopenharmony_ciint __vdso_clock_gettime(clockid_t clock, struct __kernel_timespec *ts);
1162306a36Sopenharmony_ciint __vdso_clock_gettime(clockid_t clock, struct __kernel_timespec *ts)
1262306a36Sopenharmony_ci{
1362306a36Sopenharmony_ci	return __cvdso_clock_gettime(clock, ts);
1462306a36Sopenharmony_ci}
1562306a36Sopenharmony_ci
1662306a36Sopenharmony_ciextern
1762306a36Sopenharmony_ciint __vdso_gettimeofday(struct __kernel_old_timeval *tv, struct timezone *tz);
1862306a36Sopenharmony_ciint __vdso_gettimeofday(struct __kernel_old_timeval *tv, struct timezone *tz)
1962306a36Sopenharmony_ci{
2062306a36Sopenharmony_ci	return __cvdso_gettimeofday(tv, tz);
2162306a36Sopenharmony_ci}
2262306a36Sopenharmony_ci
2362306a36Sopenharmony_ciextern
2462306a36Sopenharmony_ciint __vdso_clock_getres(clockid_t clock_id, struct __kernel_timespec *res);
2562306a36Sopenharmony_ciint __vdso_clock_getres(clockid_t clock_id, struct __kernel_timespec *res)
2662306a36Sopenharmony_ci{
2762306a36Sopenharmony_ci	return __cvdso_clock_getres(clock_id, res);
2862306a36Sopenharmony_ci}
29