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

Author: Philippe Gerum <r...@xenomai.org>
Date:   Thu Feb 13 10:44:27 2014 +0100

cobalt/shadow: cosmetic: use proper rt-CPU accessor

---

 kernel/cobalt/shadow.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/kernel/cobalt/shadow.c b/kernel/cobalt/shadow.c
index cea76bc..fa8fad3 100644
--- a/kernel/cobalt/shadow.c
+++ b/kernel/cobalt/shadow.c
@@ -395,9 +395,9 @@ static inline void check_affinity(struct task_struct *p) /* 
nklocked, IRQs off *
         * primary mode on a CPU Xenomai shall not use. This is
         * hopeless, whine and kill that thread asap.
         */
-       if (!cpu_isset(cpu, xnsched_realtime_cpus)) {
-               printk(XENO_WARN "thread %s[%d] switched to non-rt CPU, 
aborted.\n",
-                      thread->name, xnthread_host_pid(thread));
+       if (!xnsched_supported_cpu(cpu)) {
+               printk(XENO_WARN "thread %s[%d] switched to non-rt CPU%d, 
aborted.\n",
+                      thread->name, xnthread_host_pid(thread), cpu);
                /*
                 * Can't call xnthread_cancel() from a migration
                 * point, that would break. Since we are on the wakeup


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

Reply via email to