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

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 d250503..2d0a842 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