how to set persistent cpu frequency

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

how to set persistent cpu frequency

2,287件の閲覧回数
dluberger
Contributor V

I'm using the imx6 SoloX eval board. During boot, I'm drawing too much current through my ARM Core 1.35V supply.  I see that I can throttle the Core power by limiting the operating frequency, but no matter what I set the cpufreq governor to, it always seems to use "on demand" during boot-up. What I think I need is to have the governor set to powersave during bootup, which will set the core to the lowest available frequency, then I can just change it to on demand later, but how to I make the device use a particular governor during boot?  My hope is that I don't have to mess with a custom kernel build, but I do know there is a "default" option in the kernel menuconfig.  Is there a way to do it via startup script or some persistent setting change?

ラベル(4)
0 件の賞賛
返信
4 返答(返信)

2,082件の閲覧回数
b36401
NXP Employee
NXP Employee

Alternatively you can add changing CPU frequency into startup script.

0 件の賞賛
返信

2,082件の閲覧回数
dluberger
Contributor V

I was thinking about that but I have no idea how to make the init process do that first thing, plus that wouldn't affect the kernel.  I'm wondering if there's a way to do it through the bootloader (uboot) with a boot script?

0 件の賞賛
返信

2,082件の閲覧回数
igorpadykov
NXP Employee
NXP Employee

Hi David

default linux cpufreq governor can be changed using

sect.2.3.3.2.2 Menu Configuration Options attached Linux Manual.

https://www.kernel.org/doc/Documentation/cpu-freq/governors.txt 

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 件の賞賛
返信

2,082件の閲覧回数
dluberger
Contributor V

That's what I mentioned in my post. I wanted to avoid rebuilding the kernel. Is there no other way to do it?

0 件の賞賛
返信