From: Eric Dumazet Date: Tue, 13 Feb 2007 12:26:21 +0000 (+0100) Subject: [PATCH] x86-64: get rid of ARCH_HAVE_XTIME_LOCK X-Git-Tag: v2.6.21-rc1~184^2~76 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5809f9d442e9dbb23859e2c37d8c47043f6b5cc9;p=pandora-kernel.git [PATCH] x86-64: get rid of ARCH_HAVE_XTIME_LOCK ARCH_HAVE_XTIME_LOCK is used by x86_64 arch . This arch needs to place a read only copy of xtime_lock into vsyscall page. This read only copy is named __xtime_lock, and xtime_lock is defined in arch/x86_64/kernel/vmlinux.lds.S as an alias. So the declaration of xtime_lock in kernel/timer.c was guarded by ARCH_HAVE_XTIME_LOCK define, defined to true on x86_64. We can get same result with _attribute__((weak)) in the declaration. linker should do the job. Signed-off-by: Eric Dumazet Signed-off-by: Andi Kleen Cc: Andi Kleen Signed-off-by: Andrew Morton --- Reading git-diff-tree failed