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 /include | |
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 'include')
-rw-r--r-- | include/asm-x86_64/vsyscall.h | 5 | ||||
-rw-r--r-- | include/linux/time.h | 2 |
2 files changed, 1 insertions, 6 deletions
diff --git a/include/asm-x86_64/vsyscall.h b/include/asm-x86_64/vsyscall.h index 05cb8dd200de..0c7847165eae 100644 --- a/include/asm-x86_64/vsyscall.h +++ b/include/asm-x86_64/vsyscall.h | |||
@@ -56,11 +56,6 @@ extern struct vxtime_data vxtime; | |||
56 | extern int vgetcpu_mode; | 56 | extern int vgetcpu_mode; |
57 | extern struct timezone sys_tz; | 57 | extern struct timezone sys_tz; |
58 | extern int sysctl_vsyscall; | 58 | extern int sysctl_vsyscall; |
59 | extern seqlock_t xtime_lock; | ||
60 | |||
61 | extern int sysctl_vsyscall; | ||
62 | |||
63 | #define ARCH_HAVE_XTIME_LOCK 1 | ||
64 | 59 | ||
65 | #endif /* __KERNEL__ */ | 60 | #endif /* __KERNEL__ */ |
66 | 61 | ||
diff --git a/include/linux/time.h b/include/linux/time.h index 55cee172d723..eceb1a59b078 100644 --- a/include/linux/time.h +++ b/include/linux/time.h | |||
@@ -90,7 +90,7 @@ static inline struct timespec timespec_sub(struct timespec lhs, | |||
90 | 90 | ||
91 | extern struct timespec xtime; | 91 | extern struct timespec xtime; |
92 | extern struct timespec wall_to_monotonic; | 92 | extern struct timespec wall_to_monotonic; |
93 | extern seqlock_t xtime_lock; | 93 | extern seqlock_t xtime_lock __attribute__((weak)); |
94 | 94 | ||
95 | void timekeeping_init(void); | 95 | void timekeeping_init(void); |
96 | 96 | ||