forked from Imagelibrary/seL4
TCB_SetSchedParams: Simplify bind/unbind check
We no longer need to check this as the previous commit changed decodeSetSchedParams to only pass the thread_control_sched_update_sc flag if these conditions are true. Signed-off-by: Alwin Joshy <joshyalwin@gmail.com>
This commit is contained in:
committed by
Gerwin Klein
parent
3108ea86d1
commit
4ec62c89d5
@@ -1877,9 +1877,9 @@ exception_t invokeTCB_ThreadControlSched(tcb_t *target, cte_t *slot,
|
||||
}
|
||||
|
||||
if (updateFlags & thread_control_sched_update_sc) {
|
||||
if (sc != NULL && sc != target->tcbSchedContext) {
|
||||
if (sc != NULL) {
|
||||
schedContext_bindTCB(sc, target);
|
||||
} else if (sc == NULL && target->tcbSchedContext != NULL) {
|
||||
} else if (sc == NULL) {
|
||||
schedContext_unbindTCB(target->tcbSchedContext);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user