Module: xenomai-3 Branch: wip/heapmem Commit: d082061b4bddcac8a13bca899a9c9d646c2ab80d URL: http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=d082061b4bddcac8a13bca899a9c9d646c2ab80d
Author: Jan Kiszka <[email protected]> Date: Wed May 2 18:34:00 2018 +0200 cobalt/synch: Do not drop PP on xnsynch_release if it wasn't committed We must not try to drop the prio ceiling in the kernel if it wasn't committed yet. That could easily happen when using a prio-ceiling mutex to wait on a cond-var. Signed-off-by: Jan Kiszka <[email protected]> --- kernel/cobalt/synch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/cobalt/synch.c b/kernel/cobalt/synch.c index 8c217c2..c65c07a 100644 --- a/kernel/cobalt/synch.c +++ b/kernel/cobalt/synch.c @@ -942,7 +942,7 @@ bool xnsynch_release(struct xnsynch *synch, struct xnthread *curr) */ xnlock_get_irqsave(&nklock, s); - if (synch->status & XNSYNCH_PP) { + if (synch->status & XNSYNCH_CEILING) { clear_pp_boost(synch, curr); need_resched = true; } _______________________________________________ Xenomai-git mailing list [email protected] https://xenomai.org/mailman/listinfo/xenomai-git
