diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2012-02-28 14:46:04 -0500 |
---|---|---|
committer | John Stultz <john.stultz@linaro.org> | 2012-03-15 21:17:57 -0400 |
commit | 6c260d586343f7f78239d90aa9e2cfed02f74ff3 (patch) | |
tree | cd5fc9a28499a098185878bd186736091e965ab4 | |
parent | a4ca1298d8a0472a45624fa5fb99f90f0f367187 (diff) |
x86: vdso: Remove bogus locking in update_vsyscall_tz()
Changing the sequence count in update_vsyscall_tz() is completely
pointless.
The vdso code copies the data unprotected. There is no point to change
this as sys_tz is nowhere protected at all. See sys_gettimeofday().
Reviewed-by: Andy Lutomirski <luto@amacapital.net>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: John Stultz <john.stultz@linaro.org>
-rw-r--r-- | arch/x86/kernel/vsyscall_64.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/arch/x86/kernel/vsyscall_64.c b/arch/x86/kernel/vsyscall_64.c index b07ba9393564..33385c18e5d3 100644 --- a/arch/x86/kernel/vsyscall_64.c +++ b/arch/x86/kernel/vsyscall_64.c | |||
@@ -80,12 +80,7 @@ early_param("vsyscall", vsyscall_setup); | |||
80 | 80 | ||
81 | void update_vsyscall_tz(void) | 81 | void update_vsyscall_tz(void) |
82 | { | 82 | { |
83 | unsigned long flags; | ||
84 | |||
85 | write_seqlock_irqsave(&vsyscall_gtod_data.lock, flags); | ||
86 | /* sys_tz has changed */ | ||
87 | vsyscall_gtod_data.sys_tz = sys_tz; | 83 | vsyscall_gtod_data.sys_tz = sys_tz; |
88 | write_sequnlock_irqrestore(&vsyscall_gtod_data.lock, flags); | ||
89 | } | 84 | } |
90 | 85 | ||
91 | void update_vsyscall(struct timespec *wall_time, struct timespec *wtm, | 86 | void update_vsyscall(struct timespec *wall_time, struct timespec *wtm, |