Commit f349d228 authored by Jan Kiszka's avatar Jan Kiszka Committed by Philippe Gerum
Browse files

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's avatarJan Kiszka <>
parent d07c478f
......@@ -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;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment