]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - arch/x86/vdso/vclock_gettime.c
Merge branch 'linus' into tracing/ftrace
[net-next-2.6.git] / arch / x86 / vdso / vclock_gettime.c
index 5cb8f754c52da24569770b3dc538551e648a0aba..1ef0f90813d626ed6be436b93d3d5b6550dbb392 100644 (file)
@@ -107,9 +107,9 @@ notrace int __vdso_gettimeofday(struct timeval *tv, struct timezone *tz)
                do_realtime((struct timespec *)tv);
                tv->tv_usec /= 1000;
                if (unlikely(tz != NULL)) {
-                       /* This relies on gcc inlining the memcpy. We'll notice
-                          if it ever fails to do so. */
-                       memcpy(tz, &gtod->sys_tz, sizeof(struct timezone));
+                       /* Avoid memcpy. Some old compilers fail to inline it */
+                       tz->tz_minuteswest = gtod->sys_tz.tz_minuteswest;
+                       tz->tz_dsttime = gtod->sys_tz.tz_dsttime;
                }
                return 0;
        }