Or Continue to Thread: [TIP] Single/Dual/Quad Core Mo…
Find Your Device:
4th May 2012, 09:18 PM   |  #20  
mike1986.'s Avatar
Senior Member
XDA-Developers
Thanks Meter: 71,513
 
37,284 posts
Join Date:Joined: Mar 2009
Donate to Me
Little bit where it all comes from:

Code:
mount debugfs debugfs /sys/kernel/debug
is inside init.endeavoru.common.rc in ramdisk

init.endeavoru.common.rc contains also following code:

Code:
    write /sys/module/cpu_tegra3/parameters/no_lp 0
    write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor ondemand
    write /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor ondemand
    write /sys/devices/system/cpu/cpu2/cpufreq/scaling_governor ondemand
    write /sys/devices/system/cpu/cpu3/cpufreq/scaling_governor ondemand
    chown system /sys/devices/system/cpu/cpufreq/ondemand/sampling_rate_min
    chown system /sys/devices/system/cpu/cpufreq/ondemand/sampling_rate
    chown system /sys/devices/system/cpu/cpufreq/ondemand/sampling_rate_max
    chown system /sys/devices/system/cpu/cpufreq/ondemand/sampling_down_factor
    chown system /sys/devices/system/cpu/cpufreq/ondemand/io_is_busy
    chown system /sys/devices/system/cpu/cpufreq/ondemand/up_threshold
    chown system /sys/devices/system/cpu/cpufreq/ondemand/touch_poke
    chown system /sys/htc/power_save
    write /sys/devices/system/cpu/cpufreq/ondemand/sampling_rate_min 10000
    write /sys/devices/system/cpu/cpufreq/ondemand/sampling_rate 50000
    write /sys/devices/system/cpu/cpufreq/ondemand/sampling_down_factor 4
    write /sys/devices/system/cpu/cpufreq/ondemand/io_is_busy 1
    write /sys/devices/system/cpu/cpufreq/ondemand/up_threshold 90
    write /sys/devices/system/cpu/cpu1/online 0
    write /sys/devices/system/cpu/cpu2/online 0
    write /sys/devices/system/cpu/cpu3/online 0
    write /sys/kernel/debug/tegra_hotplug/max_cpus 1
    write /sys/module/cpuidle/parameters/lp2_in_idle 1
So changing /sys/kernel/debug/tegra_hotplug/max_cpus is not permanent, it will be back to the default value each reboot.

Also keep in mind that /sys/kernel/debug contains details about kernel settings, I don't think that changing it can reflect in anything.

I may not be right of course, please feel free to correct me if I'm wrong