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

Author: Philippe Gerum <r...@xenomai.org>
Date:   Tue Jul 16 09:56:30 2013 +0200

cobalt/posix/timer: remove redundant locking

---

 kernel/cobalt/posix/timer.c |    5 -----
 1 files changed, 0 insertions(+), 5 deletions(-)

diff --git a/kernel/cobalt/posix/timer.c b/kernel/cobalt/posix/timer.c
index 14ac1c7..2bd9231 100644
--- a/kernel/cobalt/posix/timer.c
+++ b/kernel/cobalt/posix/timer.c
@@ -46,16 +46,11 @@ static void timer_handler(struct xntimer *xntimer)
 {
        struct cobalt_thread *thread;
        struct cobalt_timer *timer;
-       spl_t s;
 
        timer = container_of(xntimer, struct cobalt_timer, timerbase);
-       xnlock_get_irqsave(&nklock, s);
-
        thread = cobalt_thread_find(timer->target);
        if (thread)
                cobalt_signal_send(thread, &timer->si);
-
-       xnlock_put_irqrestore(&nklock, s);
 }
 
 /**


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

Reply via email to