summaryrefslogtreecommitdiff
path: root/arch/arm64/kernel/vdso.c
diff options
context:
space:
mode:
authorWill Deacon <will.deacon@arm.com>2013-01-07 20:12:31 +0400
committerCatalin Marinas <catalin.marinas@arm.com>2013-01-10 14:43:43 +0400
commitbdba0051ebcb3c6372f9cc0b2524c47cc6ce46fd (patch)
tree38efe063fe3fc5516e3a372a5d7908a9a5f2bf5d /arch/arm64/kernel/vdso.c
parent9931faca02c604c22335f5a935a501bb2ace6e20 (diff)
downloadlinux-bdba0051ebcb3c6372f9cc0b2524c47cc6ce46fd.tar.xz
arm64: vdso: remove broken, redundant sequence counting for timezones
This patch is an arm64 version of ce73ec6db47a ("powerpc/vdso: Remove redundant locking in update_vsyscall_tz()"). Timezone data is not protected, so the sequence counter is not required to ensure consistency. Furthermore, having multiple paths updating the counter leads to a race between update_vsyscall and update_vsyscall_tz, so remove the timezone sequence counting from both the kernel and the vdso. Signed-off-by: Will Deacon <will.deacon@arm.com> Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'arch/arm64/kernel/vdso.c')
-rw-r--r--arch/arm64/kernel/vdso.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/arch/arm64/kernel/vdso.c b/arch/arm64/kernel/vdso.c
index c958cb84d75f..6a389dc1bd49 100644
--- a/arch/arm64/kernel/vdso.c
+++ b/arch/arm64/kernel/vdso.c
@@ -252,10 +252,6 @@ void update_vsyscall(struct timekeeper *tk)
void update_vsyscall_tz(void)
{
- ++vdso_data->tb_seq_count;
- smp_wmb();
vdso_data->tz_minuteswest = sys_tz.tz_minuteswest;
vdso_data->tz_dsttime = sys_tz.tz_dsttime;
- smp_wmb();
- ++vdso_data->tb_seq_count;
}