• Eric Dumazet's avatar
    [PATCH] x86-64: get rid of ARCH_HAVE_XTIME_LOCK · 5809f9d4
    Eric Dumazet authored
    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: default avatarEric Dumazet <dada1@cosmosbay.com>
    Signed-off-by: default avatarAndi Kleen <ak@suse.de>
    Cc: Andi Kleen <ak@suse.de>
    Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
    5809f9d4
vsyscall.h 1.89 KB