Commit 89ec8d23 authored by Philippe Gerum's avatar Philippe Gerum

sched/core: ipipe: do not panic on failed migration to the head stage

__ipipe_migrate_head() should not BUG() unconditionally when failing
to schedule out a thread, but rather let the real-time core handle the
situation a bit more gracefully.
parent a79165b1
......@@ -5813,8 +5813,6 @@ int __ipipe_migrate_head(void)
if (likely(__schedule(false)))
return 0;
BUG_ON(!signal_pending(p));
preempt_enable();
return -ERESTARTSYS;
}
......
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