why the system work at ondemand?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

why the system work at ondemand?

Jump to solution
2,196 Views
ruiguifang
Contributor III

Hi :

     our system start correctly, but the cpu clock only 392000hz,how can i change the cpu freq from ondemand to performance,when I echo performance > /sys/device/system/cpu/cpu0/cpufreq/scalling_setspeed  ,it turn out invalid  argument.any reply is ok

Labels (1)
0 Kudos
Reply
1 Solution
1,531 Views
ruiguifang
Contributor III

I find the answer now,  just type make menuconfig ,  setting the cpu option about freq

View solution in original post

0 Kudos
Reply
3 Replies
1,531 Views
nitinchaudhary
Contributor I

Hi, below is the way to do it suppose the max CPU Frequency is 792 MHz and I want to change from ondemand to performance governor. You can add these lines to any of the init.rc scripts to make these settings

/*Setting the MAX Scaling frequency for CPU*/

echo "7920000" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq

echo "7920000" > /sys/devices/system/cpu/cpu1/cpufreq/scaling_max_freq

echo "7920000" > /sys/devices/system/cpu/cpu2/cpufreq/scaling_max_freq

echo "7920000" > /sys/devices/system/cpu/cpu3/cpufreq/scaling_max_freq

/*Setting the CPU Freq governor to Performance*/

echo "performance" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor

echo "performance" > /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor

echo "performance" > /sys/devices/system/cpu/cpu2/cpufreq/scaling_governor

echo "performance" > /sys/devices/system/cpu/cpu3/cpufreq/scaling_governor

/*Verifying the changes*/

cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor

cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_max_freq

1,532 Views
ruiguifang
Contributor III

I find the answer now,  just type make menuconfig ,  setting the cpu option about freq

0 Kudos
Reply
1,531 Views
igorpadykov
NXP Employee
NXP Employee

using cpu freq driver it is necessary to take care of operating points

supported for specific processor, for example 3 for consumer grade

Table 6

http://cache.freescale.com/files/32bit/doc/data_sheet/IMX6DQCEC.pdf

and 2 for industrial grade

http://cache.freescale.com/files/32bit/doc/data_sheet/IMX6DQIEC.pdf

Best regards

igor

0 Kudos
Reply