View Single Post
  #64 (permalink)  
Old 05-03-2011, 06:32 AM
Gunthermic's Avatar
Gunthermic
Lurker
Offline
 
Join Date: Apr 2011
Posts: 15
Reputation: 0
Gunthermic is a n00b
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: [Kernel] Ziggy471 MECHA BETA Kernel UPDATED 2 May 11

Quote:
Originally Posted by ziggy471 View Post
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
That's is awesome Ziggy. Guess i came up with a half way deceant idea then. LOL Or maybe you had already thought of it. I am eager to try this one out.

I agree a java app would even be better...
Reply With Quote