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

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 d3a3122..b5ddbaa 100644
--- a/ksrc/nucleus/pod.c
+++ b/ksrc/nucleus/pod.c
@@ -2327,8 +2327,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
@@ -2338,11 +2336,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