aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/vdso/vclock_gettime.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/vdso/vclock_gettime.c')
-rw-r--r--arch/x86/vdso/vclock_gettime.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/x86/vdso/vclock_gettime.c b/arch/x86/vdso/vclock_gettime.c
index 5cb8f754c52..1ef0f90813d 100644
--- a/arch/x86/vdso/vclock_gettime.c
+++ b/arch/x86/vdso/vclock_gettime.c
@@ -107,9 +107,9 @@ notrace int __vdso_gettimeofday(struct timeval *tv, struct timezone *tz)
107 do_realtime((struct timespec *)tv); 107 do_realtime((struct timespec *)tv);
108 tv->tv_usec /= 1000; 108 tv->tv_usec /= 1000;
109 if (unlikely(tz != NULL)) { 109 if (unlikely(tz != NULL)) {
110 /* This relies on gcc inlining the memcpy. We'll notice 110 /* Avoid memcpy. Some old compilers fail to inline it */
111 if it ever fails to do so. */ 111 tz->tz_minuteswest = gtod->sys_tz.tz_minuteswest;
112 memcpy(tz, &gtod->sys_tz, sizeof(struct timezone)); 112 tz->tz_dsttime = gtod->sys_tz.tz_dsttime;
113 } 113 }
114 return 0; 114 return 0;
115 } 115 }