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

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