diff options
author | Eric Dumazet <dada1@cosmosbay.com> | 2007-02-13 07:26:21 -0500 |
---|---|---|
committer | Andi Kleen <andi@basil.nowhere.org> | 2007-02-13 07:26:21 -0500 |
commit | 5809f9d442e9dbb23859e2c37d8c47043f6b5cc9 (patch) | |
tree | 24c634f6de962734a1a6a8b94504d9555a35fcea /kernel/timer.c | |
parent | 26054ed02bb20f5b2e02d92cb6f0be0e2b0196d5 (diff) |
[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 <dada1@cosmosbay.com>
Signed-off-by: Andi Kleen <ak@suse.de>
Cc: Andi Kleen <ak@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Diffstat (limited to 'kernel/timer.c')
-rw-r--r-- | kernel/timer.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/kernel/timer.c b/kernel/timer.c index 8533c3796082..4902181e10e6 100644 --- a/kernel/timer.c +++ b/kernel/timer.c | |||
@@ -1162,11 +1162,9 @@ static inline void calc_load(unsigned long ticks) | |||
1162 | * This read-write spinlock protects us from races in SMP while | 1162 | * This read-write spinlock protects us from races in SMP while |
1163 | * playing with xtime and avenrun. | 1163 | * playing with xtime and avenrun. |
1164 | */ | 1164 | */ |
1165 | #ifndef ARCH_HAVE_XTIME_LOCK | 1165 | __attribute__((weak)) __cacheline_aligned_in_smp DEFINE_SEQLOCK(xtime_lock); |
1166 | __cacheline_aligned_in_smp DEFINE_SEQLOCK(xtime_lock); | ||
1167 | 1166 | ||
1168 | EXPORT_SYMBOL(xtime_lock); | 1167 | EXPORT_SYMBOL(xtime_lock); |
1169 | #endif | ||
1170 | 1168 | ||
1171 | /* | 1169 | /* |
1172 | * This function runs timers and the timer-tq in bottom half context. | 1170 | * This function runs timers and the timer-tq in bottom half context. |