why the system work at ondemand?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

why the system work at ondemand?

跳至解决方案
2,198 次查看
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

标签 (1)
0 项奖励
回复
1 解答
1,533 次查看
ruiguifang
Contributor III

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

在原帖中查看解决方案

0 项奖励
回复
3 回复数
1,533 次查看
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,534 次查看
ruiguifang
Contributor III

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

0 项奖励
回复
1,533 次查看
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 项奖励
回复