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
|