mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-25 02:13:24 +00:00
Schedule tasks to APs in aster-nix
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
5feb8f5de8
commit
47be0a909b
@ -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
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user