diff --git a/conf/init.gs101.rc b/conf/init.gs101.rc index 368cdd68..51f49c0e 100644 --- a/conf/init.gs101.rc +++ b/conf/init.gs101.rc @@ -120,7 +120,7 @@ on init # change permissions and default values for camera-daemon cpu controller chown system system /dev/cpuctl/camera-daemon/cpu.uclamp.min chown system system /dev/cpuctl/camera-daemon/cpu.uclamp.max - chown root root /dev/cpuctl/camera-daemon/cpu.uclamp.latency_sensitive + chown system system /dev/cpuctl/camera-daemon/cpu.uclamp.latency_sensitive chown system system /dev/cpuctl/camera-daemon/cgroup.procs write /dev/cpuctl/camera-daemon/cpu.uclamp.latency_sensitive 1 write /dev/cpuctl/camera-daemon/cpu.uclamp.min 1 diff --git a/powerhint.json b/powerhint.json index d004972b..2db4c562 100644 --- a/powerhint.json +++ b/powerhint.json @@ -105,15 +105,6 @@ "DefaultIndex": 0, "ResetOnInit": true }, - { - "Name": "CDLatencySensitive", - "Path": "/dev/cpuctl/camera-daemon/cpu.uclamp.latency_sensitive", - "Values": [ - "0", - "1" - ], - "ResetOnInit": true - }, { "Name": "F2fsRecessModeEnable", "Path": "/dev/sys/fs/by-name/userdata/gc_urgent", @@ -132,15 +123,6 @@ ], "ResetOnInit": true }, - { - "Name": "HighCapacityStartCpu", - "Path": "/sys/kernel/vendor_sched/high_capacity_start_cpu", - "Values": [ - "4", - "6" - ], - "ResetOnInit": true - }, { "Name": "LimitFlashCurrent", "Path": "vendor.camera.max_flash_current", @@ -334,18 +316,6 @@ "Duration": 0, "Value": "1826000" }, - { - "PowerHint": "CAMERA_STREAMING_HIGH", - "Node": "PreferHighCapEnable", - "Duration": 0, - "Value": "1" - }, - { - "PowerHint": "CAMERA_STREAMING_HIGH", - "Node": "HighCapacityStartCpu", - "Duration": 0, - "Value": "4" - }, { "PowerHint": "CAMERA_STREAMING_HIGH", "Node": "CPULittleClusterMaxFreq", @@ -364,24 +334,6 @@ "Duration": 0, "Value": "20 10 80" }, - { - "PowerHint": "CAMERA_STREAMING_STANDARD", - "Node": "PreferHighCapEnable", - "Duration": 0, - "Value": "1" - }, - { - "PowerHint": "CAMERA_STREAMING_STANDARD", - "Node": "HighCapacityStartCpu", - "Duration": 0, - "Value": "4" - }, - { - "PowerHint": "CAMERA_STREAMING_STANDARD", - "Node": "CDLatencySensitive", - "Duration": 0, - "Value": "0" - }, { "PowerHint": "CAMERA_STREAMING_STANDARD", "Node": "CPUBigClusterMaxFreq", diff --git a/task_profiles.json b/task_profiles.json index f8c7e53e..1e8def09 100644 --- a/task_profiles.json +++ b/task_profiles.json @@ -10,6 +10,15 @@ "Controller": "cpu", "Path": "top-app" } + }, + { + "Name": "WriteFile", + "Params": + { + "FilePath": "/sys/kernel/vendor_sched/set_prefer_high_cap", + "Value": "", + "LogFailures": "false" + } } ] },