__sched_wakeup_thread: Notify interrupt_exit() of re-schedule
Change-Id: I438eb168f818eb5649857e22bdc7e68a145872f7
This commit is contained in:
committed by
Dominique Martinet
parent
ea35954613
commit
f18d1f5383
@@ -3375,6 +3375,9 @@ int __sched_wakeup_thread(struct thread *thread,
|
|||||||
mcs_rwlock_writer_unlock_noirq(&proc->update_lock, &updatelock);
|
mcs_rwlock_writer_unlock_noirq(&proc->update_lock, &updatelock);
|
||||||
xchg4((int *)(&thread->status), PS_RUNNING);
|
xchg4((int *)(&thread->status), PS_RUNNING);
|
||||||
status = 0;
|
status = 0;
|
||||||
|
|
||||||
|
/* Make interrupt_exit() call schedule() */
|
||||||
|
v->flags |= CPU_FLAG_NEED_RESCHED;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
status = -EINVAL;
|
status = -EINVAL;
|
||||||
|
|||||||
Reference in New Issue
Block a user