0001
0002
0003
0004
0005
0006
0007
0008
0009
0010 #include <linux/time.h>
0011 #include <linux/types.h>
0012
0013 #if _MIPS_SIM != _MIPS_SIM_ABI64
0014 int __vdso_clock_gettime(clockid_t clock,
0015 struct old_timespec32 *ts)
0016 {
0017 return __cvdso_clock_gettime32(clock, ts);
0018 }
0019
0020 #ifdef CONFIG_MIPS_CLOCK_VSYSCALL
0021
0022
0023
0024
0025
0026
0027
0028 int __vdso_gettimeofday(struct __kernel_old_timeval *tv,
0029 struct timezone *tz)
0030 {
0031 return __cvdso_gettimeofday(tv, tz);
0032 }
0033
0034 #endif
0035
0036 int __vdso_clock_getres(clockid_t clock_id,
0037 struct old_timespec32 *res)
0038 {
0039 return __cvdso_clock_getres_time32(clock_id, res);
0040 }
0041
0042 int __vdso_clock_gettime64(clockid_t clock,
0043 struct __kernel_timespec *ts)
0044 {
0045 return __cvdso_clock_gettime(clock, ts);
0046 }
0047
0048 #else
0049
0050 int __vdso_clock_gettime(clockid_t clock,
0051 struct __kernel_timespec *ts)
0052 {
0053 return __cvdso_clock_gettime(clock, ts);
0054 }
0055
0056 #ifdef CONFIG_MIPS_CLOCK_VSYSCALL
0057
0058
0059
0060
0061
0062
0063
0064 int __vdso_gettimeofday(struct __kernel_old_timeval *tv,
0065 struct timezone *tz)
0066 {
0067 return __cvdso_gettimeofday(tv, tz);
0068 }
0069
0070 #endif
0071
0072 int __vdso_clock_getres(clockid_t clock_id,
0073 struct __kernel_timespec *res)
0074 {
0075 return __cvdso_clock_getres(clock_id, res);
0076 }
0077
0078 #endif