diff options
-rw-r--r-- | include/asm-x86_64/vsyscall.h | 5 | ||||
-rw-r--r-- | include/linux/time.h | 2 | ||||
-rw-r--r-- | kernel/timer.c | 4 |
3 files changed, 2 insertions, 9 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 | ||
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. |