48 lines
995 B
Plaintext
48 lines
995 B
Plaintext
# CPU settings config for QCOM 8155
|
|
# 0-3: 1.8GHz
|
|
# 4-6: 2.1GHz
|
|
# 7: 2.4GHz
|
|
|
|
# This should be specified before case.
|
|
# Otherwise offline only case will not work.
|
|
allcores:0-7
|
|
core_max_freq_khz:0-3=1785600
|
|
core_max_freq_khz:4-6=2131200
|
|
core_max_freq_khz:7=2419200
|
|
# this is default
|
|
default_governor:performance
|
|
|
|
case:default
|
|
# no CPU to turn off
|
|
online:0-7
|
|
# cpuset checked by adb shell "find /dev/cpuset -name cpus -print -exec cat {} \;"
|
|
cpuset:system-background=0-3
|
|
cpuset:foreground=0-7
|
|
cpuset:camera-daemon=0-3
|
|
cpuset:top-app=0-7
|
|
cpuset:background=0-3
|
|
cpuset:restricted=0-7
|
|
# top one for /dev/cpuset/cpus
|
|
cpuset:=0-7
|
|
governor:schedutil
|
|
|
|
case:6high
|
|
# two weakest cores gone, 6 cores
|
|
offline:2,3
|
|
cpuset:foreground=0,1,4,5,6
|
|
cpuset:restricted=0,1,4
|
|
|
|
case:6mid
|
|
# two middle cores gone, 6 cores
|
|
offline:4,5
|
|
cpuset:foreground=0,1,2,3,6
|
|
cpuset:restricted=0,1,2
|
|
|
|
case:3high
|
|
# three core config
|
|
online:0,4,7
|
|
|
|
case:3mid
|
|
# three core config
|
|
online:0,4,5
|