Skip to content

Commit 76a3629

Browse files
authored
Update lib.rs
1 parent c419945 commit 76a3629

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/lib.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -145,12 +145,9 @@ use std::time::Duration;
145145
use std::{cell::RefCell, sync::Arc};
146146

147147
use once_cell::sync::OnceCell;
148-
#[cfg(any(target_arch = "x86", target_arch = "x86_64"))]
149-
use raw_cpuid::CpuId;
150148

151149
mod clocks;
152150
use self::clocks::{Counter, Monotonic};
153-
154151
mod mock;
155152
pub use self::mock::{IntoNanoseconds, Mock};
156153
mod instant;
@@ -544,7 +541,7 @@ fn mul_div_po2_u64(value: u64, numer: u64, denom: u32) -> u64 {
544541
#[allow(dead_code)]
545542
#[cfg(all(target_arch = "x86_64", target_feature = "sse2"))]
546543
fn has_tsc_support() -> bool {
547-
let cpuid = CpuId::new();
544+
let cpuid = raw_cpuid::CpuId::new();
548545
let has_invariant_tsc = cpuid
549546
.get_advanced_power_mgmt_info()
550547
.map_or(false, |apm| apm.has_invariant_tsc());

0 commit comments

Comments
 (0)