Module: xenomai-forge
Branch: next
Commit: b1c6abc5b9db26ba23d667dad5acf1dc55f330a3
URL:    
http://git.xenomai.org/?p=xenomai-forge.git;a=commit;h=b1c6abc5b9db26ba23d667dad5acf1dc55f330a3

Author: Philippe Gerum <r...@xenomai.org>
Date:   Tue Sep  9 10:18:35 2014 +0200

cobalt/timerfd: force primary exec mode on timerfd_settime()

For consistency with timer_settime(), and also because the current
thread is assumed to receive the notifications if TFD_WAKEUP is set.

---

 kernel/cobalt/posix/syscall.c |    2 +-
 kernel/cobalt/posix/timerfd.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/kernel/cobalt/posix/syscall.c b/kernel/cobalt/posix/syscall.c
index 48d0fc1..e3b594e 100644
--- a/kernel/cobalt/posix/syscall.c
+++ b/kernel/cobalt/posix/syscall.c
@@ -938,7 +938,7 @@ static const int cobalt_sysmodes[] = {
        __COBALT_MODE(timer_getoverrun, current),
        __COBALT_MODE(timerfd_create, lostage),
        __COBALT_MODE(timerfd_gettime, current),
-       __COBALT_MODE(timerfd_settime, current),
+       __COBALT_MODE(timerfd_settime, primary),
        __COBALT_MODE(select, nonrestartable),
        __COBALT_MODE(sched_minprio, current),
        __COBALT_MODE(sched_maxprio, current),
diff --git a/kernel/cobalt/posix/timerfd.c b/kernel/cobalt/posix/timerfd.c
index c9e54c0..cb33994 100644
--- a/kernel/cobalt/posix/timerfd.c
+++ b/kernel/cobalt/posix/timerfd.c
@@ -215,7 +215,7 @@ static inline void tfd_put(struct cobalt_tfd *tfd)
        rtdm_fd_put(&tfd->fd);
 }
 
-COBALT_SYSCALL(timerfd_settime, current,
+COBALT_SYSCALL(timerfd_settime, primary,
               int, (int fd, int flags,
                     const struct itimerspec __user *new_value,
                     struct itimerspec __user *old_value))


_______________________________________________
Xenomai-git mailing list
Xenomai-git@xenomai.org
http://www.xenomai.org/mailman/listinfo/xenomai-git

Reply via email to