Hi,

when xnarch_program_next_timer_shot is passed a null delay and there is
no other timed event pending, the mvm terminates with the message:
"nothing to schedule".

The attached patch fixes this, though I am not sure it is the best way
to fix it.

-- 


                                            Gilles Chanteperdrix.
Index: include/asm-sim/bits/timer.h
===================================================================
--- include/asm-sim/bits/timer.h        (revision 2765)
+++ include/asm-sim/bits/timer.h        (working copy)
@@ -22,7 +22,7 @@
 static inline void xnarch_program_timer_shot (unsigned long delay)
 {
     /* 1 tsc unit of the virtual CPU == 1 ns. */
-    mvm_program_timer(delay);
+    mvm_program_timer(delay ?: 1);
 }
 
 static inline int xnarch_send_timer_ipi (xnarch_cpumask_t mask)
_______________________________________________
Xenomai-core mailing list
Xenomai-core@gna.org
https://mail.gna.org/listinfo/xenomai-core

Reply via email to