linux: Remove supports_time64 () from clock_getres
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Wed, 16 Jun 2021 00:35:10 +0000 (21:35 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Tue, 22 Jun 2021 15:09:52 +0000 (12:09 -0300)
commit283c6ebd5a71330eb37c8d08054f1036eeb544dc
treedcbf21bfb79124de4152b4ce15cda24e594daa95
parent4c3df0eba5e8fe98f0de917ade9b2ebba6951c5f
linux: Remove supports_time64 () from clock_getres

It breaks the usage case of live migration like CRIU or similar.
The performance drawback is it would require an extra syscall
on older kernels without 64-bit time support.

Checked on i686-linux-gnu on a 4.15 kernel and on a 5.11 kernel
(with and without --enable-kernel=5.1) and on x86_64-linux-gnu.

Reviewed-by: Lukasz Majewski <lukma@denx.de>
sysdeps/unix/sysv/linux/clock_getres.c