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

Author: Gilles Chanteperdrix <gilles.chanteperd...@xenomai.org>
Date:   Thu Sep 30 02:32:29 2010 +0200

nucleus/sched: fix rescheduling bit test macros

---

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

diff --git a/include/nucleus/sched.h b/include/nucleus/sched.h
index 19b4b08..0e9c25e 100644
--- a/include/nucleus/sched.h
+++ b/include/nucleus/sched.h
@@ -166,12 +166,12 @@ struct xnsched_class {
 /* Test all resched flags from the given scheduler mask. */
 static inline int xnsched_resched_p(struct xnsched *sched)
 {
-       return !xnarch_cpus_empty(sched->resched);
+       return testbits(sched->status, XNRESCHED);
 }
 
 static inline int xnsched_self_resched_p(struct xnsched *sched)
 {
-       return xnarch_cpu_isset(xnsched_cpu(sched), sched->resched);
+       return testbits(sched->status, XNRESCHED);
 }
 
 /* Set self resched flag for the given scheduler. */


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

Reply via email to