Schedule tasks to APs in aster-nix

This commit is contained in:
Zhang Junyang
2024-08-22 19:23:33 +08:00
committed by Tate, Hongliang Tian
parent 5feb8f5de8
commit 47be0a909b
11 changed files with 548 additions and 481 deletions

View File

@ -166,3 +166,11 @@ impl CpuSet {
self.bitset.iter_ones()
}
}
impl From<u32> for CpuSet {
fn from(cpu_id: u32) -> Self {
let mut set = Self::new_empty();
set.add(cpu_id);
set
}
}