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

Author: Philippe Gerum <r...@xenomai.org>
Date:   Sun Feb 16 17:33:53 2014 +0100

cobalt/sched: fix non-SMP build

---

 include/cobalt/kernel/sched.h |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/include/cobalt/kernel/sched.h b/include/cobalt/kernel/sched.h
index d96eef0..f4a47f9 100644
--- a/include/cobalt/kernel/sched.h
+++ b/include/cobalt/kernel/sched.h
@@ -209,6 +209,8 @@ static inline void xnsched_set_self_resched(struct xnsched 
*sched)
        sched->status |= XNRESCHED;
 }
 
+#define xnsched_realtime_domain  xnarch_machdata.domain
+
 /* Set resched flag for the given scheduler. */
 #ifdef CONFIG_SMP
 
@@ -226,7 +228,6 @@ static inline void xnsched_set_resched(struct xnsched 
*sched)
 }
 
 #define xnsched_realtime_cpus    xnarch_machdata.supported_cpus
-#define xnsched_realtime_domain  xnarch_machdata.domain
 
 static inline int xnsched_supported_cpu(int cpu)
 {


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

Reply via email to