Expand description
Crate for fetching and modifying the intel_pstate kernel parameters.
§Example
use intel_pstate::{PState, PStateError};
fn main() -> Result<(), PStateError> {
let pstate = PState::new()?;
let _ = pstate.set_hwp_dynamic_boost(true);
pstate.set_min_perf_pct(50)?;
pstate.set_max_perf_pct(100)?;
pstate.set_no_turbo(false)?;
Ok(())
}
Structs§
- PState
- Handle for fetching and modifying Intel PState kernel parameters.
- PState
Values - A set of pstate values that was retrieved, or is to be set.