Module: xenomai-forge
Branch: next
Commit: 9605bc207b18f22fd4a18a602570d207dc7a1dc5
URL:    
http://git.xenomai.org/?p=xenomai-forge.git;a=commit;h=9605bc207b18f22fd4a18a602570d207dc7a1dc5

Author: Philippe Gerum <r...@xenomai.org>
Date:   Tue Jul  8 17:56:59 2014 +0200

cobalt/sched: keep weak threads out of sched/rt/threads vfile

---

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

diff --git a/kernel/cobalt/sched-rt.c b/kernel/cobalt/sched-rt.c
index bf04d61..44f90dd 100644
--- a/kernel/cobalt/sched-rt.c
+++ b/kernel/cobalt/sched-rt.c
@@ -164,7 +164,8 @@ static int vfile_sched_rt_next(struct 
xnvfile_snapshot_iterator *it,
        else
                priv->curr = list_next_entry(thread, glink);
 
-       if (thread->base_class != &xnsched_class_rt)
+       if (thread->base_class != &xnsched_class_rt ||
+           xnthread_test_state(thread, XNWEAK))
                return VFILE_SEQ_SKIP;
 
        p->cpu = xnsched_cpu(thread->sched);


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

Reply via email to