Remove unnecessary usage of cfg_if macro

This commit is contained in:
Zejun Zhao 2025-03-25 19:48:45 +08:00 committed by Tate, Hongliang Tian
parent 47ee012e6b
commit d39ab61d68

View File

@ -7,14 +7,10 @@ pub mod set;
pub use set::{AtomicCpuSet, CpuSet}; pub use set::{AtomicCpuSet, CpuSet};
cfg_if::cfg_if! { #[cfg(target_arch = "riscv64")]
if #[cfg(target_arch = "x86_64")] { pub use crate::arch::riscv::cpu::*;
pub use crate::arch::x86::cpu::*; #[cfg(target_arch = "x86_64")]
} else if #[cfg(target_arch = "riscv64")] { pub use crate::arch::x86::cpu::*;
pub use crate::arch::riscv::cpu::*;
}
}
use crate::{cpu_local_cell, task::atomic_mode::InAtomicMode}; use crate::{cpu_local_cell, task::atomic_mode::InAtomicMode};
/// The ID of a CPU in the system. /// The ID of a CPU in the system.