cpufreq — CPU Frequency Control
The cpufreq module is used to get/set the CPU frequency to save power.
Functions
- cpufreq.set_frequency(supported_frequency: int) None
Sets the CPU frequency to a
supported_frequencyin MHz. Peripheral frequencies are not changed, only the CPU clock. RaisesOSErrorifsupported_frequencyis not in the list returned bycpufreq.get_supported_frequencies.