Skip to main content

current_freq_khz

Function current_freq_khz 

Source
pub fn current_freq_khz(cpu: u32) -> u64
Expand description

Read a CPU’s current operating frequency from sysfs, in kHz. The scaling_cur_freq file reflects the live frequency of the CPU, whatever the governor is doing; a missing or unreadable file (no cpufreq driver) yields 0.