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

Author: Jan Kiszka <jan.kis...@siemens.com>
Date:   Thu Jul 28 17:28:49 2011 +0200

nucleus: Simplify request token acquisition in xnshadow_harden

down_interruptible checks for pending signals, no need to do this in
advance.

Signed-off-by: Jan Kiszka <jan.kis...@siemens.com>

---

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

diff --git a/ksrc/nucleus/shadow.c b/ksrc/nucleus/shadow.c
index 76f326a..fe1dac9 100644
--- a/ksrc/nucleus/shadow.c
+++ b/ksrc/nucleus/shadow.c
@@ -950,8 +950,8 @@ redo:
        cpu = task_cpu(this_task);
        sched = xnpod_sched_slot(cpu);
 
-       if (signal_pending(this_task) || down_interruptible(&sched->gksync))
-               /* Grab the request token. */
+       /* Grab the request token. */
+       if (down_interruptible(&sched->gksync))
                return -ERESTARTSYS;
 
        if (thread->u_mode)


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

Reply via email to