[Xperia Z5 Android Development] zacharias.maladroit:
HMP Kernels ("default" scheduling mechanism) for:

CarbonROM (build I'm using is: CARBON-CR-5.1-MOO-WEEKLY-sumire-20170509-0721.zip )

LineageOS 14.1, 17.04.2017 [= laOS] (from [MENTION=1964056]HaoZeke[/MENTION] )

Kernels:

https://drive.google.com/open?id=0BykGGWB96CBQZUtoOGk1bXdTMGc Z5_SK_Enf_vN_7.1.2_CR-5.1_Core_I.2_2_4_2_5_HMP_sum.zip

https://drive.google.com/open?id=0BykGGWB96CBQQ0hSM1NYQU1sX1U Z5_SK_Enf_vN_7.1.2_LOS-14.1_Core_I.2_2_4_2_5_HMP_sum.zip

Changes:

added: scheduler fixes and improvements (WITHOUT deadline scheduler) [less IPIs, wakeups, etc.]

android: binder: improvements and fixes

mdss + kgsl: raise priority to avoid instabilities [deadlock in SurfaceFlinger]

additional fixes to kgsl + mdss (performance, stability, etc.)

devfreq: raise priority

improved and reworked scheduling and taking into account of the load of the CPUs/clusters to avoid overloading single cores = lower power consumption

add relaxed versions of system calls & macros to potentially lower power consumption

irq_work: fixes and improvements [less IPIs, issues, etc.]

devfreq: lots of fixes

some more CPUIdle improvements and fixes (less power consumption, more reliable handling of idle states)

Only expose su when daemon is running [hardening against su/root abuse] [security]

mdss: power collapse on idle - less power consumption when content of screen doesn't change (reading stuff ? viewing images ?, etc.)

qpnp-haptic: replace mutex calls with spinlocks for even faster handling

pipe, stackprotector, ion, etc.: security fixes & hardening

thermal: improve throttling behavior when there are no big cores plugged (screen off or screen on) and the SoC is STILL HOT

exec: less wasteful memory reservation & allocation

vidc: fix load calculation by ignoring thumbnail session

ASoC / wcd9330: lots of fixes & reliability improvements

random (entropy): periodic reseeding (higher randomness, security), backport from 4.1.39 + frandom [security, smoothness, reliability]

PDesire Audio 10.1 [it adds some white noise/hissing - our DAC isn't a wolfson micro or other specialized dedicated chip], play with AMP of FauxSound to lower output and counter that [evaluation]

sound: tweak quality of sound output with optimization flags

sqrt: tweaked variant

memset, memzero, push/pull: optimized variants

rq_stats: wire it up with cpufreq policy to get accurate system load and decision how to handle hotplug [currently limited since cpus are handled in clusters, more fine-tuned when using e.g. core_ctl + core_clt helper - still should help A LOT to get more accurate decisions and lower power consumption]

soc: qcom: lots of power consumption reductions & improvements, fixes

To decrease energy consumption, the max freq of all CPUs is limited to 1,344 / 1,536 GHz per cluster respectively.

and more

Notes:

the thermal changes got tested in the internal 5.11 (Stock Marshmallow) Kernel and the device seems to be significantly cooler than before

battery consumption is, of course, higher compared to EAS since the processor scaling is working correctly, if you're reading or browsing mostly use a governor that is conservative, conservative governor or tweak the governor to stay at a low frequency as long as it works for you (low frequency + input-boost helps !)

core_ctl and core_ctl_helper are NOT used, thus the CPUs are treated in clusters (little cluster, big cluster), big cluster is off while screen is off; some tools report big cores off while screen is on and not high load, also - but who cares since it's not used

little cores (ALL 4) are constantly on - and that is intended - the load can be distributed, balanced and keep the CPUs at a low power state == less power consumption

If you want high benchmark scores (in the Summer ? leave the poor device alone !) then look for a different device, this device is supposed to work at peak performance with as little throttling as possible + high SOT and/or usage time as possible with that tiny battery we have ...

Download folder:

https://drive.google.com/open?id=0BykGGWB96CBQd1c0OEJtMHRxWHc

Sauce:

https://github.com/zachariasmaladro...takami_r2/commits/Sun-Kernel_Core_I.1_non-EAS

https://github.com/zachariasmaladro...un-Kernel_Core_I.1_non-EAS_I.2_2_4_2_5_HMP_CR

https://github.com/zachariasmaladro...-Kernel_Core_I.1_non-EAS_I.2_2_4_2_5_HMP_LaOS

Enjoy !