Expand description
Handles operations using platform Time Stamp Counter (TSC).
Modules§
Structs§
Enums§
Statics§
Functions§
- Returns the Bus frequency in Hz, based on reading Intel-specific cpuids, or None if the frequency can’t be determined from cpuids.
- Calibrate the TSC state.
- Given the tsc frequency in Hz and the bus frequency in Hz, return a fake version of cpuid leaf 0x15.
- Given the state of the host TSCs in
tsc_state
, and the number of vcpus that are intended to be run, return a set of affinities and TSC offsets to apply to those vcpus. - Get the standard deviation of a
Vec<T>
. - Returns the TSC frequency in Hz, based on reading Intel-specific cpuids, or None if the frequency can’t be determined from cpuids.
- Returns the frequency of the host TSC. Calibration only happens once.
- Gets the TSC frequency for cpuid leaf 0x15 from the existing leaves 0x15 and 0x16.
- Returns the state of the host TSCs. Calibration only happens once.
Type Aliases§
- Function to retrieve the given CPUID leaf and sub-leaf.