Module: xenomai-forge
Branch: next
Commit: 57afcb16fd9c5bc3feeea5544ef0f5f6c072619e
URL:    
http://git.xenomai.org/?p=xenomai-forge.git;a=commit;h=57afcb16fd9c5bc3feeea5544ef0f5f6c072619e

Author: Philippe Gerum <r...@xenomai.org>
Date:   Thu Apr 24 16:54:27 2014 +0200

copperplate/clockobj: drop useless locking in clockobj_ticks_to_timespec()

---

 include/copperplate/clockobj.h |    2 --
 1 file changed, 2 deletions(-)

diff --git a/include/copperplate/clockobj.h b/include/copperplate/clockobj.h
index bbc2cf2..28709ae 100644
--- a/include/copperplate/clockobj.h
+++ b/include/copperplate/clockobj.h
@@ -206,9 +206,7 @@ static inline
 void clockobj_ticks_to_timespec(struct clockobj *clkobj,
                                ticks_t ticks, struct timespec *ts)
 {
-       read_lock_nocancel(&clkobj->lock);
        __clockobj_ticks_to_timespec(clkobj, ticks, ts);
-       read_unlock(&clkobj->lock);
 }
 
 static inline


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

Reply via email to