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