mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-28 20:03:22 +00:00
Don't preempt without good reason
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
19b13d88e2
commit
5233827160
@ -58,7 +58,8 @@ impl<T: CommonSchedInfo + Send + Sync> Scheduler<T> for FifoScheduler<T> {
|
||||
}
|
||||
rq.queue.push_back(runnable);
|
||||
|
||||
Some(target_cpu)
|
||||
// All tasks are important. Do not preempt the current task without good reason.
|
||||
None
|
||||
}
|
||||
|
||||
fn local_rq_with(&self, f: &mut dyn FnMut(&dyn LocalRunQueue<T>)) {
|
||||
|
Reference in New Issue
Block a user