mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-08 12:56:48 +00:00
Remove unnecessary usage of cfg_if macro
This commit is contained in:
parent
47ee012e6b
commit
d39ab61d68
@ -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")] {
|
||||
pub use crate::arch::riscv::cpu::*;
|
||||
}
|
||||
}
|
||||
|
||||
#[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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user