pub struct IdleState {
pub name: &'static str,
pub eax: usize,
pub tlb_flushed: bool,
pub exit_latency: usize,
pub target_residency: usize,
}
Expand description
A CPU idle state.
Fields§
§name: &'static str
The name of the idle state.
eax: usize
The value of EAX when calling MWAIT to enter the idle state.
tlb_flushed: bool
Whether entering the state flushes the TLB.
exit_latency: usize
The amount of time it takes for the CPU to exit the idle state in microseconds.
target_residency: usize
The amount of time the CPU must spend in the idle state to justify entering the idle state in microseconds.
For C1, this is equivalent to the exit latency. For other idle states, it is roughly three times the exit latency.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for IdleState
impl Send for IdleState
impl Sync for IdleState
impl Unpin for IdleState
impl UnwindSafe for IdleState
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more