mirror of
https://github.com/mmueller41/genode.git
synced 2026-01-21 12:32:56 +01:00
fixup "hw: implement helping of pager threads" (fix bomb)
This commit is contained in:
committed by
Norman Feske
parent
827401ee2d
commit
0d4d23a161
@@ -914,10 +914,14 @@ void Thread::_signal_to_pager()
|
||||
return;
|
||||
}
|
||||
|
||||
bool const help = Cpu_context::_helping_possible(_fault_context->pager);
|
||||
/* first signal to pager to wake it up */
|
||||
_fault_context->sc.submit(1);
|
||||
|
||||
/* only help pager thread if runnable and scheduler allows it */
|
||||
bool const help = Cpu_context::_helping_possible(_fault_context->pager)
|
||||
&& (_fault_context->pager._state == ACTIVE);
|
||||
if (help) Cpu_context::_help(_fault_context->pager);
|
||||
else _become_inactive(AWAITS_RESTART);
|
||||
_fault_context->sc.submit(1);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user