I would like to know the default settings of the parameters of ondemand CPUFreq governor that SAMSUNG has choosen for my SAMSUNG S4. I have not flashed my phone with any custom kernel. I have been reading about dynamic frequency scaling support in Linux Kernel and found out that CPUFreq subsystem implements this functionality with the help of the governors.
I found the governor for the Core 0 of my device as
:~$ adb shell cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
ondemand
then I started learning about ondemand governor. I found this https://www.kernel.org/doc/Documentation/cpu-freq/governors.txt kernel documentation, which states that following are the parameters for ondemand governor.
- sampling_rate
- sampling_rate_min
- up_threshold
- ignore_nice_load
- sampling_down_factor
- powersave_bias
next, I was trying to figureout where/how can I acess these parameters, I read here
and some other places as well that these parameters are found in /sys/devices/system/cpu/cpu?/cpufreq/ondemand directory.
Now, In my case for SAMSUNG S4, I can not see any directory named as ondemand inside /sys/devices/system/cpu/cpu0/cpufreq . I tried a rooted SAMSUNG S3 of a friend aswell, and I could not see the directory in that aswell.
My intention is to keep the default seetings/not change the kernel and just to get to know what are the default settings of the CPUFreq govenor I purchased the phone with ?
Don't go to
/sys/devices/system/cpu/cpu#/
to look for the ondemand directory.The directory can be found here:
/sys/device/system/cpu/cpufreq/ondemand
(since it is not only 1 cpu you're going to command).