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

Author: Jan Kiszka <jan.kis...@siemens.com>
Date:   Fri Jan 18 20:05:38 2013 +0100

nucleus: remove unneeded atomic manipulation of xnsched::status

Minor optimization, but helps to clarify the usage: this field is
protected by nklock.

Signed-off-by: Jan Kiszka <jan.kis...@siemens.com>

---

 kernel/cobalt/nucleus/pod.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/kernel/cobalt/nucleus/pod.c b/kernel/cobalt/nucleus/pod.c
index d1a30d2..828c1fa 100644
--- a/kernel/cobalt/nucleus/pod.c
+++ b/kernel/cobalt/nucleus/pod.c
@@ -1835,7 +1835,8 @@ static inline int test_resched(struct xnsched *sched)
 #else
        resched = xnsched_resched_p(sched);
 #endif
-       clrbits(sched->status, XNRESCHED);
+       __clrbits(sched->status, XNRESCHED);
+
        return resched;
 }
 


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

Reply via email to