diff options
author | Lukasz Majewski <lukma@denx.de> | 2019-11-08 11:13:56 +0100 |
---|---|---|
committer | Lukasz Majewski <lukma@denx.de> | 2019-12-05 23:16:54 +0100 |
commit | ab65136e7233183a1f35c7d36867b5937844b368 (patch) | |
tree | 77360cf34d9602857e3c1010577a72422ca1e78e /sysdeps/unix/sysv/linux/timer_settime.c | |
parent | 115959290f01f6c0674e16e0de5d8a16f79d19de (diff) | |
download | glibc-ab65136e7233183a1f35c7d36867b5937844b368.tar.gz |
timer: Decouple x86_64 specific timer_settime from generic Linux implementation
The x86_64 specific timer_settime implementation (from
./linux/x86_64/timer_settime.c) reused the Linux generic one (from
./linux/timer_settime.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_settime64 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>
Diffstat (limited to 'sysdeps/unix/sysv/linux/timer_settime.c')
-rw-r--r-- | sysdeps/unix/sysv/linux/timer_settime.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/sysdeps/unix/sysv/linux/timer_settime.c b/sysdeps/unix/sysv/linux/timer_settime.c index a8350aedaa..51f24200aa 100644 --- a/sysdeps/unix/sysv/linux/timer_settime.c +++ b/sysdeps/unix/sysv/linux/timer_settime.c @@ -22,17 +22,10 @@ #include <sysdep.h> #include "kernel-posix-timers.h" - -#ifdef timer_settime_alias -# define timer_settime timer_settime_alias -#endif - - int timer_settime (timer_t timerid, int flags, const struct itimerspec *value, struct itimerspec *ovalue) { -#undef timer_settime struct timer *kt = (struct timer *) timerid; /* Delete the kernel timer object. */ |