AnsweredAssumed Answered

Change CPU frequency

Question asked by Kirill Brilliantov on Oct 12, 2016
Latest reply on Nov 20, 2016 by Kirill Brilliantov

Hello!

My system based on Yocto Jethro release, linux-4.1.15 with follow configuration:

CONFIG_CPU_FREQ=y
CONFIG_CPU_FREQ_GOV_COMMON=y
CONFIG_CPU_FREQ_STAT=y
CONFIG_CPU_FREQ_DEFAULT_GOV_ONDEMAND=y
CONFIG_CPU_FREQ_GOV_PERFORMANCE=y
CONFIG_CPU_FREQ_GOV_POWERSAVE=y
CONFIG_CPU_FREQ_GOV_USERSPACE=y
CONFIG_CPU_FREQ_GOV_ONDEMAND=y
CONFIG_CPU_FREQ_GOV_INTERACTIVE=y
CONFIG_CPU_FREQ_GOV_CONSERVATIVE=y

 

I try use /sys/devices/system/cpu, but subdirectories not contained cpufreq directory

~ # ls -F /sys/devices/system/cpu/
cpu0/ cpu2/ cpuidle/ offline possible present
cpu1/ cpu3/ kernel_max online power/ uevent

~ # cat /sys/devices/system/cpu/cpuidle/current_governor_ro
menu

~ # ls -F /sys/devices/system/cpu/cpu0
cpuidle/ of_node@ online power/ subsystem@ topology/ uevent

 

Can I use /sys for this or I should build some application, e.g. kernel/git/brodo/cpufrequtils.git - cpufrequtils - cpufreq userspace utilites for Linux, replaced by cpupower  ?

How can I change CPU frequency?

Thank you and excuse my bad english.

Outcomes