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

Author: Philippe Gerum <r...@xenomai.org>
Date:   Thu Jun 13 15:03:35 2013 +0200

nucleus/sched_tp: fix call to get monotonic time

---

 kernel/cobalt/nucleus/sched-tp.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/kernel/cobalt/nucleus/sched-tp.c b/kernel/cobalt/nucleus/sched-tp.c
index 6277354..9ad6cbf 100644
--- a/kernel/cobalt/nucleus/sched-tp.c
+++ b/kernel/cobalt/nucleus/sched-tp.c
@@ -61,7 +61,7 @@ static void tp_schedule_next(struct xnsched_tp *tp)
                 */
                for (;;) {
                        t = tp->tf_start + tp->gps->tf_duration;
-                       if (xnpod_get_cpu_time() > t) {
+                       if (xnclock_read_monotonic() > t) {
                                tp->tf_start = t;
                                tp->wnext = 0;
                        } else


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

Reply via email to