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

Author: Philippe Gerum <r...@xenomai.org>
Date:   Sat Nov  5 18:46:11 2011 +0100

alchemy/task: fix CPU affinity setting

---

 lib/alchemy/task.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/lib/alchemy/task.c b/lib/alchemy/task.c
index 7b149c4..9404b5b 100644
--- a/lib/alchemy/task.c
+++ b/lib/alchemy/task.c
@@ -229,7 +229,7 @@ static int create_tcb(struct alchemy_task **tcbp,
 
        CPU_ZERO(&tcb->affinity);
        for (cpu = 0; cpu < 8; cpu++) {
-               if (T_CPU(cpu))
+               if (mode & T_CPU(cpu))
                        CPU_SET(cpu, &tcb->affinity);
        }
 


_______________________________________________
Xenomai-git mailing list
Xenomai-git@gna.org
https://mail.gna.org/listinfo/xenomai-git

Reply via email to