Module: xenomai-3
Branch: next
Commit: 053e4731cb5a778380008ac100fa150c0d7f36f3
URL:    
http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=053e4731cb5a778380008ac100fa150c0d7f36f3

Author: Philippe Gerum <r...@xenomai.org>
Date:   Mon May 18 20:58:40 2015 +0200

cobalt/process: drop extraneous barriers

---

 kernel/cobalt/posix/process.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/kernel/cobalt/posix/process.c b/kernel/cobalt/posix/process.c
index 4750fde..6110da6 100644
--- a/kernel/cobalt/posix/process.c
+++ b/kernel/cobalt/posix/process.c
@@ -986,9 +986,8 @@ static inline void init_hostrt(void) { }
 
 static inline void lock_timers(void)
 {
-       smp_mb__before_atomic();
+       /* We are covered by the core lock: no barriers needed. */
        atomic_inc(&nkclklk);
-       smp_mb__after_atomic();
 }
 
 static inline void unlock_timers(void)


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

Reply via email to