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