intel-pstate

Crates.iointel-pstate
lib.rsintel-pstate
version1.0.1
sourcesrc
created_at2018-12-06 22:14:31.82171
updated_at2022-02-25 12:05:42.989503
descriptionFetch and modify Intel pstate kernel parameters
homepage
repositoryhttps://github.com/pop-os/intel-pstate
max_upload_size
id100462
size9,156
Jeremy Soller (jackpot51)

documentation

README

intel-pstate

Rust crate for fetching and modifying intel_pstate kernel parameters.

use std::io;
use intel_pstate::PState;

fn main() -> io::Result<()> {
    if let Ok(pstate) = PState::new() {
        pstate.set_min_perf_pct(50)?;
        pstate.set_max_perf_pct(100)?;
        pstate.set_no_turbo(false)?;
    }

    Ok(())
}
Commit count: 14

cargo fmt