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

Author: Philippe Gerum <r...@xenomai.org>
Date:   Wed Jul 16 10:20:15 2014 +0200

cobalt/thread: fix start date of periodic timeline

---

 kernel/cobalt/thread.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/cobalt/thread.c b/kernel/cobalt/thread.c
index a36ffc7..b25a8d2 100644
--- a/kernel/cobalt/thread.c
+++ b/kernel/cobalt/thread.c
@@ -1255,7 +1255,7 @@ int xnthread_set_periodic(struct xnthread *thread, 
xnticks_t idate,
                        ret = -EINVAL;
                        goto unlock_and_exit;
                }
-               ret = xntimer_start(&thread->ptimer, idate + period, period,
+               ret = xntimer_start(&thread->ptimer, idate, period,
                                    XN_ABSOLUTE);
        }
 


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

Reply via email to