162306a36Sopenharmony_ci// SPDX-License-Identifier: GPL-2.0 262306a36Sopenharmony_ci/* 362306a36Sopenharmony_ci * Copied from arch/arm64/kernel/vdso/vgettimeofday.c 462306a36Sopenharmony_ci * 562306a36Sopenharmony_ci * Copyright (C) 2018 ARM Ltd. 662306a36Sopenharmony_ci * Copyright (C) 2020 SiFive 762306a36Sopenharmony_ci */ 862306a36Sopenharmony_ci 962306a36Sopenharmony_ci#include <linux/time.h> 1062306a36Sopenharmony_ci#include <linux/types.h> 1162306a36Sopenharmony_ci 1262306a36Sopenharmony_ciextern 1362306a36Sopenharmony_ciint __vdso_clock_gettime(clockid_t clock, struct __kernel_timespec *ts); 1462306a36Sopenharmony_ciint __vdso_clock_gettime(clockid_t clock, struct __kernel_timespec *ts) 1562306a36Sopenharmony_ci{ 1662306a36Sopenharmony_ci return __cvdso_clock_gettime(clock, ts); 1762306a36Sopenharmony_ci} 1862306a36Sopenharmony_ci 1962306a36Sopenharmony_ciextern 2062306a36Sopenharmony_ciint __vdso_gettimeofday(struct __kernel_old_timeval *tv, struct timezone *tz); 2162306a36Sopenharmony_ciint __vdso_gettimeofday(struct __kernel_old_timeval *tv, struct timezone *tz) 2262306a36Sopenharmony_ci{ 2362306a36Sopenharmony_ci return __cvdso_gettimeofday(tv, tz); 2462306a36Sopenharmony_ci} 2562306a36Sopenharmony_ci 2662306a36Sopenharmony_ciextern 2762306a36Sopenharmony_ciint __vdso_clock_getres(clockid_t clock_id, struct __kernel_timespec *res); 2862306a36Sopenharmony_ciint __vdso_clock_getres(clockid_t clock_id, struct __kernel_timespec *res) 2962306a36Sopenharmony_ci{ 3062306a36Sopenharmony_ci return __cvdso_clock_getres(clock_id, res); 3162306a36Sopenharmony_ci} 32