vgettimeofday.c (24640f233b466051ad3a5d2786d2951e43026c9d) vgettimeofday.c (abed3d826f2fb723c61b1251720348a42357c4e5)
1// SPDX-License-Identifier: GPL-2.0-or-later
2/*
3 * MIPS64 and compat userspace implementations of gettimeofday()
4 * and similar.
5 *
6 * Copyright (C) 2015 Imagination Technologies
7 * Copyright (C) 2018 ARM Limited
8 *

--- 9 unchanged lines hidden (view full) ---

18}
19
20int __vdso_gettimeofday(struct __kernel_old_timeval *tv,
21 struct timezone *tz)
22{
23 return __cvdso_gettimeofday(tv, tz);
24}
25
1// SPDX-License-Identifier: GPL-2.0-or-later
2/*
3 * MIPS64 and compat userspace implementations of gettimeofday()
4 * and similar.
5 *
6 * Copyright (C) 2015 Imagination Technologies
7 * Copyright (C) 2018 ARM Limited
8 *

--- 9 unchanged lines hidden (view full) ---

18}
19
20int __vdso_gettimeofday(struct __kernel_old_timeval *tv,
21 struct timezone *tz)
22{
23 return __cvdso_gettimeofday(tv, tz);
24}
25
26int __vdso_clock_getres(clockid_t clock_id,
27 struct old_timespec32 *res)
28{
29 return __cvdso_clock_getres_time32(clock_id, res);
30}
31
26#else
27
28int __vdso_clock_gettime(clockid_t clock,
29 struct __kernel_timespec *ts)
30{
31 return __cvdso_clock_gettime(clock, ts);
32}
33
34int __vdso_gettimeofday(struct __kernel_old_timeval *tv,
35 struct timezone *tz)
36{
37 return __cvdso_gettimeofday(tv, tz);
38}
39
32#else
33
34int __vdso_clock_gettime(clockid_t clock,
35 struct __kernel_timespec *ts)
36{
37 return __cvdso_clock_gettime(clock, ts);
38}
39
40int __vdso_gettimeofday(struct __kernel_old_timeval *tv,
41 struct timezone *tz)
42{
43 return __cvdso_gettimeofday(tv, tz);
44}
45
46int __vdso_clock_getres(clockid_t clock_id,
47 struct __kernel_timespec *res)
48{
49 return __cvdso_clock_getres(clock_id, res);
50}
51
40#endif
52#endif