xref: /DragonOS/kernel/src/smp/core.rs (revision e28411791f090c421fe4b6fa5956fb1bd362a8d9)
1 use super::cpu::ProcessorId;
2 
3 /// @brief 获取当前的cpu id
4 #[inline]
smp_get_processor_id() -> ProcessorId5 pub fn smp_get_processor_id() -> ProcessorId {
6     return crate::arch::cpu::current_cpu_id();
7 }
8