1 // SPDX-License-Identifier: GPL-2.0-or-later 1 2 /* 3 * MIPS64 and compat userspace implementations 4 * and similar. 5 * 6 * Copyright (C) 2015 Imagination Technologies 7 * Copyright (C) 2018 ARM Limited 8 * 9 */ 10 #include <linux/time.h> 11 #include <linux/types.h> 12 #include <vdso/gettime.h> 13 14 #if _MIPS_SIM != _MIPS_SIM_ABI64 15 int __vdso_clock_gettime(clockid_t clock, 16 struct old_timespec32 17 { 18 return __cvdso_clock_gettime32(clock, 19 } 20 21 #ifdef CONFIG_MIPS_CLOCK_VSYSCALL 22 23 /* 24 * This is behind the ifdef so that we don't p 25 * possibility of there being a usable clockso 26 * can do without it. When libc fails the symb 27 * the standard syscall path. 28 */ 29 int __vdso_gettimeofday(struct __kernel_old_ti 30 struct timezone *tz) 31 { 32 return __cvdso_gettimeofday(tv, tz); 33 } 34 35 #endif /* CONFIG_MIPS_CLOCK_VSYSCALL */ 36 37 int __vdso_clock_getres(clockid_t clock_id, 38 struct old_timespec32 39 { 40 return __cvdso_clock_getres_time32(clo 41 } 42 43 int __vdso_clock_gettime64(clockid_t clock, 44 struct __kernel_tim 45 { 46 return __cvdso_clock_gettime(clock, ts 47 } 48 49 #else 50 51 int __vdso_clock_gettime(clockid_t clock, 52 struct __kernel_times 53 { 54 return __cvdso_clock_gettime(clock, ts 55 } 56 57 #ifdef CONFIG_MIPS_CLOCK_VSYSCALL 58 59 /* 60 * This is behind the ifdef so that we don't p 61 * possibility of there being a usable clockso 62 * can do without it. When libc fails the symb 63 * the standard syscall path. 64 */ 65 int __vdso_gettimeofday(struct __kernel_old_ti 66 struct timezone *tz) 67 { 68 return __cvdso_gettimeofday(tv, tz); 69 } 70 71 #endif /* CONFIG_MIPS_CLOCK_VSYSCALL */ 72 73 int __vdso_clock_getres(clockid_t clock_id, 74 struct __kernel_timesp 75 { 76 return __cvdso_clock_getres(clock_id, 77 } 78 79 #endif 80
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.