[Xiaomi Mi Max ROMs, Kernels, Recoveries, & Other D] mat9v:
The only thing he actually modified in "init.qcom.power.rc" is needlesly adding "write /sys/devices/system/cpu/cpu0/online 1" that brings up the core that is ALWAYS online because it is the core that boots whole system and you can't bring it down.

He also modified default:

"write /dev/cpuset/foreground/cpus 0-2,4-5

write /dev/cpuset/foreground/boost/cpus 4-5

write /dev/cpuset/background/cpus 0

write /dev/cpuset/system-background/cpus 0-2

write /dev/cpuset/top-app/cpus 0-5

write /dev/cpuset/camera-daemon/cpus 0-3"

into

"write /dev/cpuset/foreground/cpus 0-2,4-5

write /dev/cpuset/foreground/boost/cpus 0-7

write /dev/cpuset/background/cpus 0-7

write /dev/cpuset/system-background/cpus 0-7

write /dev/cpuset/top-app/cpus 0-7

write /dev/cpuset/camera-daemon/cpus 0-7"

that basically forces more cores to boost and messed up background core settings, also forced camera to have affinity for all cores instead of only small cores - that leads to overheating (yes you can overheat Mi Max).

Here is how I have set up my config:

write /dev/cpuset/foreground/cpus 1-3,4-7

write /dev/cpuset/foreground/boost/cpus 4-7

write /dev/cpuset/background/cpus 0

write /dev/cpuset/system-background/cpus 0-2

write /dev/cpuset/top-app/cpus 0-7

write /dev/cpuset/camera-daemon/cpus 0-3

and

write /proc/sys/kernel/sched_boost 0

write /proc/sys/kernel/sched_upmigrate 85

write /proc/sys/kernel/sched_downmigrate 70

# Enable governor for power cluster

write /sys/devices/system/cpu/cpu0/online 1

write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor "interactive"

write /sys/devices/system/cpu/cpu0/cpufreq/interactive/go_hispeed_load 70

write /sys/devices/system/cpu/cpu0/cpufreq/interactive/timer_rate 20000

write /sys/devices/system/cpu/cpu0/cpufreq/interactive/io_is_busy 0

write /sys/devices/system/cpu/cpu0/cpufreq/interactive/min_sample_time 40000

write /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq 400000

# Enable governor for perf cluster

write /sys/devices/system/cpu/cpu4/online 1

write /sys/devices/system/cpu/cpu4/cpufreq/scaling_governor "interactive"

write /sys/devices/system/cpu/cpu4/cpufreq/interactive/go_hispeed_load 75

write /sys/devices/system/cpu/cpu4/cpufreq/interactive/timer_rate 20000

write /sys/devices/system/cpu/cpu4/cpufreq/interactive/io_is_busy 0

write /sys/devices/system/cpu/cpu4/cpufreq/interactive/min_sample_time 40000

write /sys/devices/system/cpu/cpu4/cpufreq/interactive/sampling_down_factor 40000

write /sys/devices/system/cpu/cpu4/cpufreq/scaling_min_freq 400000

write /sys/devices/system/cpu/cpu4/cpufreq/interactive/max_freq_hysteresis 60000

write /sys/devices/system/cpu/cpu0/cpufreq/interactive/above_hispeed_delay 59000

write /sys/devices/system/cpu/cpu0/cpufreq/interactive/hispeed_freq 1401600

write /sys/devices/system/cpu/cpu0/cpufreq/interactive/target_loads "691200:50 806400:60"

write /sys/devices/system/cpu/cpu4/cpufreq/interactive/hispeed_freq 1804800

write /sys/devices/system/cpu/cpu4/cpufreq/interactive/above_hispeed_delay "19000 1382400:39000"

write /sys/devices/system/cpu/cpu4/cpufreq/interactive/target_loads "75 1382400:60 1747200:70"

and

# Configure core_ctl

write /sys/devices/system/cpu/cpu4/core_ctl/min_cpus 1

write /sys/devices/system/cpu/cpu4/core_ctl/max_cpus 4

write /sys/devices/system/cpu/cpu4/core_ctl/busy_up_thres 52

write /sys/devices/system/cpu/cpu4/core_ctl/busy_down_thres 26

write /sys/devices/system/cpu/cpu4/core_ctl/offline_delay_ms 250

write /sys/devices/system/cpu/cpu4/core_ctl/task_thres 3

write /sys/devices/system/cpu/cpu4/core_ctl/is_big_cluster 1

write /sys/devices/system/cpu/cpu0/core_ctl/busy_up_thres 15

write /sys/devices/system/cpu/cpu0/core_ctl/busy_down_thres 5

write /sys/devices/system/cpu/cpu0/core_ctl/offline_delay_ms 5000

write /sys/devices/system/cpu/cpu0/core_ctl/not_preferred 1

What I'm basically doing here is making Android more "trigger happy" with turning on additional cores and ramping up core frequencies according to load.

On the balance side I set lowest frequency to 400000 (or 400Mhz) for both small and big cores.

It is what I did for Galaxy Note 2 (in my sig.) but then I had overclocking to play with also :)

This config is ridiculously responsive and for now I'm testing if it is acceptable for battery life :) Unfortunately with MiMax battery it takes a lot of time....

For all non-believers here is a screenshot of the result :)

View attachment 3967633