timer: Decouple x86_64 specific timer_gettime from generic Linux implementation
authorLukasz Majewski <lukma@denx.de>
Tue, 5 Nov 2019 11:18:24 +0000 (12:18 +0100)
committerLukasz Majewski <lukma@denx.de>
Thu, 5 Dec 2019 22:16:54 +0000 (23:16 +0100)
commit115959290f01f6c0674e16e0de5d8a16f79d19de
tree4e102754b3544ce1c6f046a9efa1c6b9010c5455
parent4b135425d889cb18b0fb3c3d166e115927042dda
timer: Decouple x86_64 specific timer_gettime from generic Linux implementation

The x86_64 specific timer_gettime implementation (from
./linux/x86_64/timer_gettime.c) reused the Linux generic one (from
./linux/timer_gettime.c) to implement handling some compatible timers
(previously defined in librt, now in libc).

As the generic implementation now is going to also support new (available
from Linux 5.1+) timer_gettime64 syscall, those two implementations have
been decoupled for easier conversion.

The original INLINE_SYSCALL() macro has been replaced with
INLINE_SYSCALL_CALL() to avoid explicit passing the number of arguments.

Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
sysdeps/unix/sysv/linux/timer_gettime.c
sysdeps/unix/sysv/linux/x86_64/timer_gettime.c