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};
cfg_if::cfg_if! {
if #[cfg(target_arch = "x86_64")] {
pub use crate::arch::x86::cpu::*;
} else if #[cfg(target_arch = "riscv64")] {
#[cfg(target_arch = "riscv64")]
pub use crate::arch::riscv::cpu::*;
}
}
#[cfg(target_arch = "x86_64")]
pub use crate::arch::x86::cpu::*;
use crate::{cpu_local_cell, task::atomic_mode::InAtomicMode};
/// The ID of a CPU in the system.