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

Author: Gilles Chanteperdrix <gilles.chanteperd...@xenomai.org>
Date:   Sun Dec 11 17:35:53 2011 +0100

cobalt: remove useless calls to xnpod_unblockable_p()

---

 kernel/cobalt/cond.c |    3 ---
 kernel/cobalt/sem.c  |    3 ---
 2 files changed, 0 insertions(+), 6 deletions(-)

diff --git a/kernel/cobalt/cond.c b/kernel/cobalt/cond.c
index c8200ef..c19643c 100644
--- a/kernel/cobalt/cond.c
+++ b/kernel/cobalt/cond.c
@@ -238,9 +238,6 @@ static inline int cobalt_cond_timedwait_prologue(xnthread_t 
*cur,
        spl_t s;
        int err;
 
-       if (xnpod_unblockable_p())
-               return -EPERM;
-
        xnlock_get_irqsave(&nklock, s);
 
        /* If another thread waiting for cond does not use the same mutex */
diff --git a/kernel/cobalt/sem.c b/kernel/cobalt/sem.c
index f855905..6b1918c 100644
--- a/kernel/cobalt/sem.c
+++ b/kernel/cobalt/sem.c
@@ -524,9 +524,6 @@ sem_timedwait_internal(cobalt_sem_t *sem, int timed, 
xnticks_t to)
        xnthread_t *cur;
        int err;
 
-       if (xnpod_unblockable_p())
-               return -EPERM;
-
        cur = xnpod_current_thread();
 
        if ((err = sem_trywait_internal(sem)) != -EAGAIN)


_______________________________________________
Xenomai-git mailing list
Xenomai-git@gna.org
https://mail.gna.org/listinfo/xenomai-git

Reply via email to