mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-09 13:26: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};
|
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.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user