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

Author: Gilles Chanteperdrix <gilles.chanteperd...@xenomai.org>
Date:   Fri Jan  7 23:56:00 2011 +0100

nucleus/sched: avoid useless nklock synchronization in relax path

---

 ksrc/nucleus/pod.c |   10 +++-------
 1 files changed, 3 insertions(+), 7 deletions(-)

diff --git a/ksrc/nucleus/pod.c b/ksrc/nucleus/pod.c
index ff21f73..04e9d67 100644
--- a/ksrc/nucleus/pod.c
+++ b/ksrc/nucleus/pod.c
@@ -2337,8 +2337,6 @@ reschedule:
 #ifdef CONFIG_XENO_OPT_PERVASIVE
       shadow_epilogue:
        {
-               spl_t ignored;
-
                /* Shadow on entry and root without shadow extension on exit?
                   Mmmm... This must be the user-space mate of a deleted 
real-time
                   shadow we've just rescheduled in the Linux domain to have it
@@ -2348,11 +2346,9 @@ reschedule:
                        xnshadow_exit();
                }
 
-               /* We need to relock nklock here, since it is not locked and
-                  the caller may expect it to be locked. */
-               xnlock_get_irqsave(&nklock, ignored);
-               xnlock_put_irqrestore(&nklock, s);
-
+               /* We are returning to xnshadow_relax via
+                  xnpod_suspend_thread, do nothing,
+                  xnpod_suspend_thread will re-enable interrupts. */
                return;
        }
 #endif /* CONFIG_XENO_OPT_PERVASIVE */


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

Reply via email to