x86: use explicit copy in vdso_gettimeofday()

Jeremy's gcc 3.4 seems to be unable to inline a 8 byte memcpy. But the
vdso doesn't support external references. Copy the structure members
of struct timezone explicitely instead.

Signed-off-by: Andi Kleen <ak@linux.intel.com>
Cc: Jeremy Fitzhardinge <jeremy@goop.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>

authored by Andi Kleen and committed by Thomas Gleixner a1289643 2ddfd20e

+3 -3
+3 -3
arch/x86/vdso/vclock_gettime.c
··· 106 106 do_realtime((struct timespec *)tv); 107 107 tv->tv_usec /= 1000; 108 108 if (unlikely(tz != NULL)) { 109 - /* This relies on gcc inlining the memcpy. We'll notice 110 - if it ever fails to do so. */ 111 - memcpy(tz, &gtod->sys_tz, sizeof(struct timezone)); 109 + /* Avoid memcpy. Some old compilers fail to inline it */ 110 + tz->tz_minuteswest = gtod->sys_tz.tz_minuteswest; 111 + tz->tz_dsttime = gtod->sys_tz.tz_dsttime; 112 112 } 113 113 return 0; 114 114 }