1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-29 11:41:21 +03:00

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>
This commit is contained in:
Lukasz Majewski
2019-11-05 12:18:24 +01:00
parent 4b135425d8
commit 115959290f
2 changed files with 8 additions and 11 deletions

View File

@ -22,16 +22,9 @@
#include <sysdep.h>
#include "kernel-posix-timers.h"
#ifdef timer_gettime_alias
# define timer_gettime timer_gettime_alias
#endif
int
timer_gettime (timer_t timerid, struct itimerspec *value)
{
#undef timer_gettime
struct timer *kt = (struct timer *) timerid;
/* Delete the kernel timer object. */