xref: /linux/arch/parisc/kernel/vdso64/vdso64_generic.c (revision 55d0969c451159cff86949b38c39171cab962069)
1 // SPDX-License-Identifier: GPL-2.0
2 
3 #include "asm/unistd.h"
4 #include <linux/types.h>
5 
6 struct timezone;
7 struct __kernel_timespec;
8 struct __kernel_old_timeval;
9 
10 /* forward declarations */
11 int __vdso_gettimeofday(struct __kernel_old_timeval *tv, struct timezone *tz);
12 int __vdso_clock_gettime(clockid_t clock, struct __kernel_timespec *ts);
13 
14 
15 int __vdso_gettimeofday(struct __kernel_old_timeval *tv,
16 			struct timezone *tz)
17 {
18 	return syscall2(__NR_gettimeofday, (long)tv, (long)tz);
19 }
20 
21 int __vdso_clock_gettime(clockid_t clock, struct __kernel_timespec *ts)
22 {
23 	return syscall2(__NR_clock_gettime, (long)clock, (long)ts);
24 }
25