Distribute tasks among all the CPUs

This commit is contained in:
Zejun Zhao
2025-01-13 16:39:47 +08:00
committed by Tate, Hongliang Tian
parent d74d126e64
commit 29791ba77e
6 changed files with 47 additions and 23 deletions

View File

@ -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()
}