lib/vdso: Make __arch_update_vdso_data() logic understandable

The function name suggests that this is a boolean checking whether the
architecture asks for an update of the VDSO data, but it works the other
way round. To spare further confusion invert the logic.

Fixes: 44f57d788e ("timekeeping: Provide a generic update_vsyscall() implementation")
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/r/20200114185946.656652824@linutronix.de
This commit is contained in:
Thomas Gleixner
2020-01-14 19:52:38 +01:00
parent de95a991bb
commit 9a6b55ac4a
3 changed files with 5 additions and 5 deletions

View File

@@ -84,7 +84,7 @@ void update_vsyscall(struct timekeeper *tk)
struct vdso_timestamp *vdso_ts;
u64 nsec;
if (__arch_update_vdso_data()) {
if (!__arch_update_vdso_data()) {
/*
* Some architectures might want to skip the update of the
* data page.