Module: xenomai-jki
Branch: for-upstream
Commit: 9292dc70d5f250da6a29f656f0232931fe6f03b9
URL:    
http://git.xenomai.org/?p=xenomai-jki.git;a=commit;h=9292dc70d5f250da6a29f656f0232931fe6f03b9

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>

---

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

diff --git a/ksrc/nucleus/pod.c b/ksrc/nucleus/pod.c
index a5afaa5..868f98f 100644
--- a/ksrc/nucleus/pod.c
+++ b/ksrc/nucleus/pod.c
@@ -2176,7 +2176,7 @@ static inline int __xnpod_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