~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/arch/mips/vdso/vgettimeofday.c

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /arch/mips/vdso/vgettimeofday.c (Architecture alpha) and /arch/ppc/vdso/vgettimeofday.c (Architecture ppc)


  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                                                   

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php