Searched refs:smp_cpu_manager (Results 1 – 10 of 10) sorted by relevance
/DragonOS/kernel/src/arch/x86_64/smp/ |
H A D | mod.rs | 19 cpu::{smp_cpu_manager, CpuHpCpuState, ProcessorId, SmpCpuManager}, 50 let vaddr = if let Some(t) = smp_cpu_manager() in smp_ap_start() 166 smp_cpu_manager().set_possible_cpu(ProcessorId::new(0), true); in build_cpu_map() 167 smp_cpu_manager().set_present_cpu(ProcessorId::new(0), true); in build_cpu_map() 168 smp_cpu_manager().set_online_cpu(ProcessorId::new(0)); in build_cpu_map() 173 smp_cpu_manager().set_possible_cpu(ProcessorId::new(cpu as u32), true); in build_cpu_map() 174 smp_cpu_manager().set_present_cpu(ProcessorId::new(cpu as u32), true); in build_cpu_map() 178 print_cpus("possible", smp_cpu_manager().possible_cpus()); in build_cpu_map() 179 print_cpus("present", smp_cpu_manager().present_cpus()); in build_cpu_map()
|
/DragonOS/kernel/src/smp/ |
H A D | syscall.rs | 6 use super::cpu::smp_cpu_manager; 10 let cpu_manager = smp_cpu_manager(); in getaffinity()
|
H A D | init.rs | 8 smp::{core::smp_get_processor_id, cpu::smp_cpu_manager}, 15 smp_cpu_manager().complete_ap_thread(true); in smp_ap_start_stage2()
|
H A D | mod.rs | 10 cpu::{smp_cpu_manager, smp_cpu_manager_init, CpuHpCpuState, ProcessorId}, 54 smp_cpu_manager().bringup_nonboot_cpus(); in smp_init()
|
/DragonOS/kernel/src/mm/ |
H A D | percpu.rs | 9 cpu::{smp_cpu_manager, ProcessorId}, 39 let cpus = smp_cpu_manager().present_cpus_count(); in init()
|
/DragonOS/kernel/src/smp/cpu/ |
H A D | mod.rs | 26 pub fn smp_cpu_manager() -> &'static SmpCpuManager { in smp_cpu_manager() function 308 unsafe { smp_cpu_manager().set_possible_cpu(boot_cpu, true) }; in smp_cpu_manager_init() 309 unsafe { smp_cpu_manager().set_present_cpu(boot_cpu, true) }; in smp_cpu_manager_init()
|
/DragonOS/kernel/src/bpf/map/ |
H A D | array_map.rs | 10 use crate::smp::cpu::{smp_cpu_manager, ProcessorId}; 236 let num_cpus = smp_cpu_manager().possible_cpus_count(); in new() 265 let num_cpus = smp_cpu_manager().possible_cpus_count(); in for_each_elem()
|
/DragonOS/kernel/src/driver/irqchip/ |
H A D | riscv_sifive_plic.rs | 53 smp::cpu::{smp_cpu_manager, ProcessorId}, 369 amask.bitand_assign(smp_cpu_manager().possible_cpus()); in irq_set_affinity() 375 if cpu.data() > smp_cpu_manager().present_cpus_count() { in irq_set_affinity() 504 for i in smp_cpu_manager().present_cpus().iter_cpu() { in do_riscv_sifive_plic_init()
|
/DragonOS/kernel/src/driver/base/ |
H A D | cpu.rs | 298 let cpu_manager = crate::smp::cpu::smp_cpu_manager(); in show() 322 let cpu_manager = crate::smp::cpu::smp_cpu_manager(); in show()
|
/DragonOS/kernel/src/exception/ |
H A D | irqdesc.rs | 32 smp::cpu::smp_cpu_manager, 998 .replace(smp_cpu_manager().possible_cpus().clone()); in set_percpu_devid()
|