fleur: {init, powerhint}: Kang utilization clamping from malachite
Signed-off-by: claxten10 <claxten10@gmail.com>
This commit is contained in:
@@ -153,6 +153,16 @@
|
|||||||
],
|
],
|
||||||
"ResetOnInit": true
|
"ResetOnInit": true
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"Name": "UclampFGMin",
|
||||||
|
"Path": "/dev/cpuctl/foreground/cpu.uclamp.min",
|
||||||
|
"Values": [
|
||||||
|
"0",
|
||||||
|
"15"
|
||||||
|
],
|
||||||
|
"DefaultIndex": 0,
|
||||||
|
"ResetOnInit": true
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"Name": "GPUMinFreq",
|
"Name": "GPUMinFreq",
|
||||||
"Path": "/sys/kernel/gpu/gpu_min_clock",
|
"Path": "/sys/kernel/gpu/gpu_min_clock",
|
||||||
@@ -404,6 +414,12 @@
|
|||||||
"Duration": 58,
|
"Duration": 58,
|
||||||
"Value": "1"
|
"Value": "1"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"PowerHint": "INTERACTION",
|
||||||
|
"Node": "UclampFGMin",
|
||||||
|
"Duration": 58,
|
||||||
|
"Value": "15"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"PowerHint": "LAUNCH",
|
"PowerHint": "LAUNCH",
|
||||||
"Node": "CPUBigClusterMinFreq",
|
"Node": "CPUBigClusterMinFreq",
|
||||||
|
|||||||
@@ -71,8 +71,8 @@ on init
|
|||||||
write /dev/cpuctl/background/cpu.shares 1024
|
write /dev/cpuctl/background/cpu.shares 1024
|
||||||
write /dev/cpuctl/system-background/cpu.shares 2048
|
write /dev/cpuctl/system-background/cpu.shares 2048
|
||||||
write /dev/cpuctl/background/cpu.uclamp.min 0
|
write /dev/cpuctl/background/cpu.uclamp.min 0
|
||||||
write /dev/cpuctl/background/cpu.uclamp.max 30
|
write /dev/cpuctl/background/cpu.uclamp.max 40
|
||||||
write /dev/cpuctl/system-background/cpu.uclamp.min 1
|
write /dev/cpuctl/system-background/cpu.uclamp.min 0
|
||||||
write /dev/cpuctl/system-background/cpu.uclamp.max 60
|
write /dev/cpuctl/system-background/cpu.uclamp.max 60
|
||||||
|
|
||||||
# Camera daemon tasks
|
# Camera daemon tasks
|
||||||
@@ -88,16 +88,16 @@ on init
|
|||||||
write /dev/cpuctl/dex2oat/cpu.shares 2048
|
write /dev/cpuctl/dex2oat/cpu.shares 2048
|
||||||
|
|
||||||
# Foreground tasks
|
# Foreground tasks
|
||||||
write /dev/cpuctl/foreground/cpu.uclamp.latency_sensitive 0
|
write /dev/cpuctl/foreground/cpu.uclamp.latency_sensitive 1
|
||||||
write /dev/cpuctl/foreground/cpu.uclamp.min 10
|
write /dev/cpuctl/foreground/cpu.uclamp.min 0
|
||||||
write /dev/cpuctl/foreground/cpu.uclamp.max max
|
write /dev/cpuctl/foreground/cpu.uclamp.max 80
|
||||||
write /dev/cpuctl/foreground/cpu.shares 10240
|
write /dev/cpuctl/foreground/cpu.shares 10240
|
||||||
|
|
||||||
# Foreground window tasks
|
# Foreground window tasks
|
||||||
write /dev/cpuctl/foreground_window/cpu.uclamp.latency_sensitive 0
|
write /dev/cpuctl/foreground_window/cpu.uclamp.latency_sensitive 1
|
||||||
write /dev/cpuctl/foreground_window/cpu.uclamp.min 10
|
write /dev/cpuctl/foreground_window/cpu.uclamp.min 0
|
||||||
write /dev/cpuctl/foreground_window/cpu.uclamp.max max
|
write /dev/cpuctl/foreground_window/cpu.uclamp.max 80
|
||||||
write /dev/cpuctl/foreground_window/cpu.shares 12288
|
write /dev/cpuctl/foreground_window/cpu.shares 10240
|
||||||
|
|
||||||
# NeuralNetwork API HAL tasks
|
# NeuralNetwork API HAL tasks
|
||||||
write /dev/cpuctl/nnapi-hal/cpu.uclamp.latency_sensitive 1
|
write /dev/cpuctl/nnapi-hal/cpu.uclamp.latency_sensitive 1
|
||||||
@@ -106,8 +106,8 @@ on init
|
|||||||
write /dev/cpuctl/nnapi-hal/cpu.shares 20480
|
write /dev/cpuctl/nnapi-hal/cpu.shares 20480
|
||||||
|
|
||||||
# Top app tasks
|
# Top app tasks
|
||||||
write /dev/cpuctl/top-app/cpu.uclamp.latency_sensitive 0
|
write /dev/cpuctl/top-app/cpu.uclamp.latency_sensitive 1
|
||||||
write /dev/cpuctl/top-app/cpu.uclamp.min 15
|
write /dev/cpuctl/foreground/cpu.uclamp.min 0
|
||||||
write /dev/cpuctl/top-app/cpu.uclamp.max max
|
write /dev/cpuctl/top-app/cpu.uclamp.max max
|
||||||
write /dev/cpuctl/top-app/cpu.shares 20480
|
write /dev/cpuctl/top-app/cpu.shares 20480
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user