View Single Post
  #62 (permalink)  
Old 05-02-2011, 10:45 PM
ziggy471's Avatar
ziggy471
Geek with a Gun
Offline
Threadstarter
Location: NoVA
 
Join Date: Oct 2009
Posts: 744
Reputation: 6575
ziggy471 is a trusted member of the communityziggy471 is a trusted member of the communityziggy471 is a trusted member of the communityziggy471 is a trusted member of the communityziggy471 is a trusted member of the communityziggy471 is a trusted member of the communityziggy471 is a trusted member of the communityziggy471 is a trusted member of the communityziggy471 is a trusted member of the communityziggy471 is a trusted member of the communityziggy471 is a trusted member of the community
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: [Kernel] Ziggy471 MECHA BETA Kernel UPDATED 2 May 11

Alright guys, I got the dynamic toggling on/off of frequencies working. I still need to clean up the code, and run more test, but since 0430 is approaching to fast, I'll get it cleaned up and posted tomorrow night. Not to bad, only took 33 builds to get it all working correctly, turned out to be easier than I was trying to make it.

Just so you know somewhat of how it will work, you'll have a new sysfs file under /sys/devices/system/cpu/cpu0/cpufreq, called user_freqs. If you echo a freq to it, it will toggle it's state. If you cat it, it will show the state of ALL freqs, not just those enabled. I also modified/fixed cpufreq_stats to only display the available frequencies.

And lastly, I added two more options, if you echo 0 to user_freqs, it will reset to the kernel defaults. If you echo 1 to user_freqs, it will disable all frequencies outside of your min and max.

Don't worry, once I'm rested, I'll do a complete write-up with examples. Now if there are any Java developers that would like to write an app, that would be even better.


Z
__________________
Ziggy471.com

Government's first duty is to protect the people, not run their lives.
Ronald Reagan
Reply With Quote
This post has been thanked 2 times.