Skip to content
Snippets Groups Projects
Commit c18cf32b authored by Avi Kivity's avatar Avi Kivity
Browse files

sched: don't schedule() in thread::wake()

The thread that's doing the waking is obviously running, so no need to
reschedule, and it's awkward if done from an interrupt.
parent f57bdab3
No related branches found
No related tags found
No related merge requests found
...@@ -72,7 +72,6 @@ void thread::wake() ...@@ -72,7 +72,6 @@ void thread::wake()
if (!_on_runqueue) { if (!_on_runqueue) {
_on_runqueue = true; _on_runqueue = true;
runqueue.push_back(this); runqueue.push_back(this);
schedule();
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment