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

Author: Philippe Gerum <r...@xenomai.org>
Date:   Wed Sep  1 18:37:16 2010 +0200

nucleus/sched: raise self-resched condition when unlocking scheduler

This patch turns the xnsched_set_resched() call into
xnsched_set_self_resched(), in xnpod_unlock_sched() where we always
deal with the local scheduler.

---

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

diff --git a/ksrc/nucleus/pod.c b/ksrc/nucleus/pod.c
index 0f9ea71..7db0ccf 100644
--- a/ksrc/nucleus/pod.c
+++ b/ksrc/nucleus/pod.c
@@ -2361,7 +2361,7 @@ void xnpod_unlock_sched(void)
 
        if (--xnthread_lock_count(curr) == 0) {
                xnthread_clear_state(curr, XNLOCK);
-               xnsched_set_resched(curr->sched);
+               xnsched_set_self_resched(curr->sched);
                xnpod_schedule();
        }
 


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

Reply via email to