Searched refs:MAX_CPU_NUM (Results 1 – 15 of 15) sorted by relevance
17 static CPU_NUM_ATOMIC: AtomicU32 = AtomicU32::new(PerCpu::MAX_CPU_NUM);24 pub const MAX_CPU_NUM: u32 = 128; constant26 pub const MAX_CPU_NUM: u32 = 64; constant
28 static mut __CPU_PENDING: Option<Box<[VecStatus; PerCpu::MAX_CPU_NUM as usize]>> = None;42 [VecStatus::default(); PerCpu::MAX_CPU_NUM as usize], in softirq_init()45 for i in 0..PerCpu::MAX_CPU_NUM { in softirq_init()122 let mut percpu_count = Vec::with_capacity(PerCpu::MAX_CPU_NUM as usize); in new()123 percpu_count.resize_with(PerCpu::MAX_CPU_NUM as usize, || AtomicI16::new(0)); in new()
35 tss: [TaskStateSegment; PerCpu::MAX_CPU_NUM as usize],41 tss: [TaskStateSegment::new(); PerCpu::MAX_CPU_NUM as usize], in new()
104 phys_id: [usize; PerCpu::MAX_CPU_NUM as usize],146 phys_id: [0; PerCpu::MAX_CPU_NUM as usize],152 ia64_cpu_to_sapicid: RwLock<[Option<usize>; PerCpu::MAX_CPU_NUM as usize]>,158 ia64_cpu_to_sapicid: RwLock::new([None; PerCpu::MAX_CPU_NUM as usize]), in new()
34 let mut v: Vec<Arc<ProcessControlBlock>> = Vec::with_capacity(PerCpu::MAX_CPU_NUM as usize); in init_idle()36 for i in 0..PerCpu::MAX_CPU_NUM { in init_idle()
145 for _ in 0..PerCpu::MAX_CPU_NUM { in init_switch_result()
19 if cnt.data() >= PerCpu::MAX_CPU_NUM { in early_acpi_boot_init()
119 for i in 0..PerCpu::MAX_CPU_NUM { in init_local_context()
91 let mut data = Vec::with_capacity(PerCpu::MAX_CPU_NUM as usize); in new()92 for i in 0..PerCpu::MAX_CPU_NUM { in new()
21 static mut XAPIC_INSTANCES: [RefCell<Option<XApic>>; PerCpu::MAX_CPU_NUM as usize] =22 [const { RefCell::new(None) }; PerCpu::MAX_CPU_NUM as usize];
33 static mut LOCAL_APIC_TIMERS: [RefCell<LocalApicTimer>; PerCpu::MAX_CPU_NUM as usize] =34 [const { RefCell::new(LocalApicTimer::new()) }; PerCpu::MAX_CPU_NUM as usize];
15 let bmp = AllocBitmap::new(PerCpu::MAX_CPU_NUM as usize); in new()
32 static SBI_TIMER_INIT_BMP: SpinLock<StaticBitmap<{ PerCpu::MAX_CPU_NUM as usize }>> =
981 CPU_IRQ_TIME = Some(Vec::with_capacity(PerCpu::MAX_CPU_NUM as usize)); in sched_init()985 .resize_with(PerCpu::MAX_CPU_NUM as usize, || Box::leak(Box::default())); in sched_init()987 let mut cpu_runqueue = Vec::with_capacity(PerCpu::MAX_CPU_NUM as usize); in sched_init()988 for cpu in 0..PerCpu::MAX_CPU_NUM as usize { in sched_init()
407 (0..PerCpu::MAX_CPU_NUM) in riscv_sifive_plic_init()