diff options
| author | bors <bors@rust-lang.org> | 2024-08-03 00:18:15 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-08-03 00:18:15 +0000 |
| commit | 1df0458781d6fd753a68c4cdc4de5313b1635dbd (patch) | |
| tree | cea2537196bd353df47e76e19a18acaf331913c0 /library/std/src/sys | |
| parent | fd8d6fbe505ecf913f5e2ca590c69a7da2789879 (diff) | |
| parent | 36527d691e381403c75bc5e30ad1bfd97de2cf12 (diff) | |
Auto merge of #128528 - workingjubilee:you-dont-need-to-see-this-cpuid-move-along, r=Amanieu
Finish removing `has_cpuid` The one use of it was guaranteed to be always true. try-job: test-various
Diffstat (limited to 'library/std/src/sys')
| -rw-r--r-- | library/std/src/sys/pal/uefi/time.rs | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/library/std/src/sys/pal/uefi/time.rs b/library/std/src/sys/pal/uefi/time.rs index a97d69f997b..495ff2dc930 100644 --- a/library/std/src/sys/pal/uefi/time.rs +++ b/library/std/src/sys/pal/uefi/time.rs @@ -175,10 +175,6 @@ pub(crate) mod instant_internal { #[cfg(target_arch = "x86_64")] fn timestamp_rdtsc() -> Option<Duration> { - if !crate::arch::x86_64::has_cpuid() { - return None; - } - static FREQUENCY: crate::sync::OnceLock<u64> = crate::sync::OnceLock::new(); // Get Frequency in Mhz @@ -200,10 +196,6 @@ pub(crate) mod instant_internal { #[cfg(target_arch = "x86")] fn timestamp_rdtsc() -> Option<Duration> { - if !crate::arch::x86::has_cpuid() { - return None; - } - static FREQUENCY: crate::sync::OnceLock<u64> = crate::sync::OnceLock::new(); let freq = FREQUENCY |
