Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6c260d58 authored by Thomas Gleixner's avatar Thomas Gleixner Committed by John Stultz
Browse files

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: default avatarAndy Lutomirski <luto@amacapital.net>
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
Signed-off-by: default avatarJohn Stultz <john.stultz@linaro.org>
parent a4ca1298
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -80,12 +80,7 @@ early_param("vsyscall", vsyscall_setup);

void update_vsyscall_tz(void)
{
	unsigned long flags;

	write_seqlock_irqsave(&vsyscall_gtod_data.lock, flags);
	/* sys_tz has changed */
	vsyscall_gtod_data.sys_tz = sys_tz;
	write_sequnlock_irqrestore(&vsyscall_gtod_data.lock, flags);
}

void update_vsyscall(struct timespec *wall_time, struct timespec *wtm,