Skip to main content

get_primary_cpus

Function get_primary_cpus 

Source
pub fn get_primary_cpus(mode: Powermode) -> Result<Vec<usize>>
Expand description

Return the list of CPU IDs matching the requested power mode.

Selects CPUs from the system topology based on Powermode: