Hi Rita,
yes. I am able to see what values the CPU frequency can be changed to. Below is the o/p.
$ cat /sys/devices/system/cpu/cpu0/cpufreq/stats/time_in_state
396000 1887
792000 149
996000 564
I used below command to set CPU frequency. (CPU governance is in userspace mode)
# echo 396000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_setspeed
This set successfully. But when I checked cpu_cur_fre info it is showing 648000
cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_cur_freq
The same status when using #cpufreq-info command.
cpufrequtils 008: cpufreq-info (C) Dominik Brodowski 2004-2009
Report errors and bugs to cpufreq@vger.kernel.org, please.
analyzing CPU 0:
driver: imx7d-cpufreq
CPUs which run at the same hardware frequency: 0 1
CPUs which need to have their frequency coordinated by software: 0 1
maximum transition latency: 77.0 us.
hardware limits: 296 MHz - 996 MHz
available frequency steps: 296 MHz, 324 MHz, 396 MHz, 792 MHz, 996 MHz
available cpufreq governors: interactive, conservative, userspace, powersave, ondemand, performance
current policy: frequency should be within 296 MHz and 996 MHz.
The governor "userspace" may decide which speed to use
within this range.
current CPU frequency is 648 MHz (asserted by call to hardware).
cpufreq stats: 296 MHz:86.42%, 324 MHz:0.57%, 396 MHz:9.63%, 792 MHz:3.16%, 996 MHz:0.21% (240)
analyzing CPU 1:
driver: imx7d-cpufreq
CPUs which run at the same hardware frequency: 0 1
CPUs which need to have their frequency coordinated by software: 0 1
maximum transition latency: 77.0 us.
hardware limits: 296 MHz - 996 MHz
available frequency steps: 296 MHz, 324 MHz, 396 MHz, 792 MHz, 996 MHz
available cpufreq governors: interactive, conservative, userspace, powersave, ondemand, performance
current policy: frequency should be within 296 MHz and 996 MHz.
The governor "userspace" may decide which speed to use
within this range.
current CPU frequency is 648 MHz (asserted by call to hardware).
cpufreq stats: 296 MHz:86.42%, 324 MHz:0.57%, 396 MHz:9.63%, 792 MHz:3.16%, 996 MHz:0.21% (240)
I am expecting current CPU frequency as 396 MHz. But it is not happening.
Many Thanks,
Gopinath