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

Author: Gilles Chanteperdrix <gilles.chanteperd...@xenomai.org>
Date:   Sat Mar 23 21:45:39 2013 +0100

cobalt/nucleus: restrict host timer emulation to the shared case

We don't want to run any timer emulation if the time source is not
shared with the linux kernel.

---

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

diff --git a/kernel/cobalt/nucleus/pod.c b/kernel/cobalt/nucleus/pod.c
index 8ca156f..f0d26b7 100644
--- a/kernel/cobalt/nucleus/pod.c
+++ b/kernel/cobalt/nucleus/pod.c
@@ -2157,7 +2157,7 @@ int xnpod_enable_timesource(void)
                sched = xnpod_sched_slot(cpu);
                if (htickval > 1)
                        xntimer_start(&sched->htimer, htickval, htickval, 
XN_RELATIVE);
-               else
+               else if (htickval == 1)
                        xntimer_start(&sched->htimer, 0, 0, XN_RELATIVE);
 
 #if defined(CONFIG_XENO_OPT_WATCHDOG)


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

Reply via email to