[Nexus 4 Original Android Development] defconoi:
Changelog & Tunables

Changelog:

Commit History

My kernel now deletes /system/bin/mpdecision and /system/bin/thermald which are not needed and interfere with my kernel and automatically removes older busybox, installs latest busybox as well as runs a cleaning script to reset Synapse, FauxClock & Others to make sure the kernel boots up properly without bad settings. FauxClock & Synapse do have a profile saving feature, use that before flashing.

Older Kernel Builds Here

Alucard, Darkness & Nightmare CPU Freq Tunables:

inc_cpu_load_at_min_freq:

This threshold is used as up threshold while sampling at frequencies less than freq_for_responsiveness. Above that, normal inc_cpu_load is used. This gives us an option to make scaling aggressive/relaxed until a frequency and normal for higher frequencies. (Only for Nightmare, Alucard). (Default: 60%)"

inc_cpu_load:

The frequency at which governor scales CPU up. Load big or equal inc_cpu_load: cpu scaled up. (Only for Nightmare, Alucard). (Default: 70%)

dec_cpu_load_at_min_freq:

This threshold is used as down threshold while sampling at frequencies less than freq_responsiveness. Above that, normal dec_cpu_load is used. This gives us an option to make scaling aggressive/relaxed until a frequency and normal for higher frequencies. (Only for Alucard). (Default: 60%)

dec_cpu_load:

The frequency at which governor scales CPU down. Load less than dec_cpu_load: cpu scaled down. (Only for Nightmare, Alucard). (Default: 70%)

freq_for_responsiveness_max:

When current freq is greater than freq_for_responsiviness_max, freq_step_dec will be equal to freq_step_dec_at_max_freq. (Only for Nightmare).

freq_responsiveness:

Until freq_responsiveness, Up Threshold considered for sampling load is inc_cpu_load_at_min_freq. Also during the part where CPU is at maximum load frequency, governor need to find the optimal frequency as the next frequency - which should not trigger up_threshold in the next sampling. When such a frequency_next is found to be a) less than freq_responsiveness b) will not trigger down_threshold in the next sample, then the optimal frequency is set to freq_responsiveness. (Only for Alucard)

pump_inc_step_at_min_freq_1-4:

Governor should increase CPU0 frequency by n step each time CPU load reaches inc_cpu_load_at_min_freq. (Only for Alucard) (Default: 2)"

pump_inc_step_1-4:

Governor should increase CPU0 frequency by n step each time CPU load reaches inc_cpu_load. (Only for Alucard) (Default: 1)"

pump_dec_step_1-4:

Governor should decrease CPU0 frequency by n step each time CPU load reaches dec_cpu_load default 30%

freq_up_brake_at_min_freq:

Brake scale up frequency when load big or equal inc_cpu_load_at_min_freq. (Only for Nightmare). (Default: 20)"

freq_up_brake:

Brake scale up frequency when load big or equal inc_cpu_load. (Only for Nightmare). (Default: 20)"

freq_step_dec:

Defines how much as a percentage of maximum frequency, governor should decrease CPU frequency each time CPU load reaches dec_cpu_load. Only for Nightmare). Default: 10%)

freq_step_dec_at_max_freq:

Defines how much as a percentage of maximum frequency, governor should decrease CPU frequency each time CPU load reaches dec_cpu_load and current freq is greater than freq_for_responsiviness_max. (Only for Nightmare). (Default: 10%)"

cpus_up_rate:

Number of samples to evaluate cpus frequency scaling up when current cpu frequency is greater than freq_responsiveness. (Default: 1)"

cpus_down_rate:

Number of samples to evaluate cpu frequency scaling down when current cpu frequency is greater than freq_responsiveness. (Default: 2)"

Alucard HOTPLUG:

hotplug_sampling_rate:

Sampling Interval, measured in ms. This factor determines how often the governor should poll for CPU usage in terms of frequency and load percentage to make hotplugging decisions. (Default: 30 ms)

hotplug_rate_1_1:

Number of samples to evaluate cpu1 hotplug in. (Default: 1)

hotplug_rate_2_0:

Number of samples to evaluate cpu1 hotplug out. (Default: 5)

hotplug_rate_2_1:

Number of samples to evaluate cpu2 hotplug in. (Default: 2)

hotplug_rate_3_0:

Number of samples to evaluate cpu2 hotplug out. (Default: 5)"

hotplug_rate_3_1:

Number of samples to evaluate cpu3 hotplug in. (Default: 2)

hotplug_rate_4_0:

Number of samples to evaluate cpu3 hotplug out. (Default: 5)

hotplug_freq_1_1:

Up threshold frequency to turn second core On, when some other conditions is also met. ie If (minimum frequency greater than or equal to hotplug_freq 1 1) Hotplug IN Second Core. Higher value corresponds to delay in turning on second core. (Default: 1242.000 kHz)

hotplug_freq_2_0:

Down threshold frequency to turn second core Off, when some other conditions is also met. ie If (maximum frequency less than hotplug_freq 2 0) Hotplug OUT Second Core. Lower value corresponds to delay in turning off second core. (Default: 810.000 kHz)

hotplug_freq_2_1:

Up threshold frequency to turn third core On, when some other conditions is also met. ie If (minimum frequency greater than or equal to hotplug_freq 2 1) Hotplug IN Third Core. Higher value corresponds to delay in turning on Third core. (Default: 1566.000 kHz)

hotplug_freq_3_0:

Down threshold frequency to turn third core Off, when some other conditions is also met. ie If (maximum frequency less than hotplug_freq 3 0) Hotplug OUT Third Core. Lower value corresponds to delay in turning off third core. (Default: 918.000 kHz)

hotplug_freq_3_1:

Up threshold frequency to turn fourth core On, when some other conditions is also met. ie If (minimum frequency greater than or equal to hotplug_freq 3 1) Hotplug IN Fourth Core. Higher value corresponds to delay in turning on Fourth core. (Default: 1566.000 kHz)"

hotplug_freq_4_0:

Down threshold frequency to turn fourth core Off, when some other conditions is also met. ie If (maximum frequency less than hotplug_freq 4 0) Hotplug OUT Fourth Core. Lower value corresponds to delay in turning off fourth core. (Default: 918.000 kHz)"

hotplug_load_1_1:

The CPU load at which governor scales CPU up. Current Load equal or greater than up_load: CPU Hotplug IN. Value corresponding to 101 causes not HOTPLUG IN. (Default: 60%)

hotplug_load_2_0:

The CPU load at which governor scales CPU down. Current Load less than down_load and CPU online greater than 1: CPU Hotplug OUT. Value corresponding to 101 causes immediately HOTPLUG OUT. (Default: 30%)

hotplug_load_2_1:

The CPU load at which governor scales CPU up. Current Load equal or greater than up_load: CPU Hotplug IN. Value corresponding to 101 causes not HOTPLUG IN. (Default: 65%)

hotplug_load_3_0:

The CPU load at which governor scales CPU down. Current Load less than down_load and CPU online greater than 1: CPU Hotplug OUT. Value corresponding to 101 causes immediately HOTPLUG OUT. (Default: 30%)

hotplug_load_3_1:

The CPU load at which governor scales CPU up. Current Load equal or greater than up_load: CPU Hotplug IN. Value corresponding to 101 causes not HOTPLUG IN. (Default: 65%)

hotplug_load_4_0:

The CPU load at which governor scales CPU down. Current Load less than down_load and CPU online greater than 1: CPU Hotplug OUT. Value corresponding to 101 causes immediately HOTPLUG OUT. (Default: 20%)

hotplug_rq_1_1:

Threshold run queue length for second core to turn on. (Default: 100)

hotplug_rq_2_0:

Threshold run queue length for second core to turn off. (Default: 100)

hotplug_rq_2_1:

Threshold run queue length for third core to turn on. (Default: 200)

hotplug_rq_3_0:

Threshold run queue length for third core to turn off. (Default: 200)

hotplug_rq_3_1:

Threshold run queue length for fourth core to turn on. (Default: 300)

hotplug_rq_4_0:

Threshold run queue length for fourth core to turn off. (Default: 300)

maxcoreslimit:

Max CPU's hotplugging limit. (Default: 4)

maxcoreslimit_sleep:

Max CPU's hotplugging limit. (Default: 2)