mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-28 20:03:22 +00:00
Distribute tasks among all the CPUs
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
d74d126e64
commit
29791ba77e
@ -235,11 +235,11 @@ impl SchedClassRq for FairClassRq {
|
||||
self.entities.push(Reverse(FairQueueItem(entity, vruntime)));
|
||||
}
|
||||
|
||||
fn len(&mut self) -> usize {
|
||||
fn len(&self) -> usize {
|
||||
self.entities.len()
|
||||
}
|
||||
|
||||
fn is_empty(&mut self) -> bool {
|
||||
fn is_empty(&self) -> bool {
|
||||
self.entities.is_empty()
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user