Module: xenomai-2.6
Branch: master
Commit: 311ce19823b50b0eb6404c63b8074a76b61375cc
URL:    
http://git.xenomai.org/?p=xenomai-2.6.git;a=commit;h=311ce19823b50b0eb6404c63b8074a76b61375cc

Author: Gilles Chanteperdrix <gilles.chanteperd...@xenomai.org>
Date:   Mon Jan 23 21:45:50 2012 +0100

nucleus: do not touch XNOTHER bit for threads under PIP boost

---

 include/nucleus/sched-rt.h |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/nucleus/sched-rt.h b/include/nucleus/sched-rt.h
index 6ac8fd7..69c63ff 100644
--- a/include/nucleus/sched-rt.h
+++ b/include/nucleus/sched-rt.h
@@ -86,8 +86,8 @@ static inline void __xnsched_rt_setparam(struct xnthread 
*thread,
                                         const union xnsched_policy_param *p)
 {
        thread->cprio = p->rt.prio;
-       if (xnthread_test_state(thread, XNSHADOW)) {
-               if (thread->bprio || !xnthread_test_state(thread, XNBOOST))
+       if (xnthread_test_state(thread, XNSHADOW | XNBOOST) == XNSHADOW) {
+               if (thread->cprio)
                        xnthread_clear_state(thread, XNOTHER);
                else
                        xnthread_set_state(thread, XNOTHER);


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

Reply via email to