x86-64 vsyscalls require mapping the sequence number used by
gettimeofday in a magic way, so that userland can access it via
vsyscalls for user space time-of-day access.
Instead of putting the magic into generic code I just allowed to move it
into architecture specific files.
#include <asm/uaccess.h>
#include <asm/div64.h>
+#include <asm/timex.h>
/*
* per-CPU timer vector definitions:
* This read-write spinlock protects us from races in SMP while
* playing with xtime and avenrun.
*/
+#ifndef ARCH_HAVE_XTIME_LOCK
seqlock_t xtime_lock __cacheline_aligned_in_smp = SEQLOCK_UNLOCKED;
+#endif
unsigned long last_time_offset;
/*