diff --git a/arch/x86/vdso/vclock_gettime.c b/arch/x86/vdso/vclock_gettime.c index a69929e8bfdb56ee736426820ecda51f202e7406..a724905fdae7c296bb40492505225f5cf053f35a 100644 --- a/arch/x86/vdso/vclock_gettime.c +++ b/arch/x86/vdso/vclock_gettime.c @@ -175,8 +175,8 @@ static __always_inline long time_syscall(long *t) notrace time_t __vdso_time(time_t *t) { - unsigned seq; time_t result; + if (unlikely(!VVAR(vsyscall_gtod_data).sysctl_enabled)) return time_syscall(t);