From 642f30c685f86c0ecc32c0eccddc9b67d64ed947 Mon Sep 17 00:00:00 2001 From: pix106 Date: Sun, 8 Oct 2023 08:27:36 +0200 Subject: [PATCH] clover: Commonize cgroups and task_profiles This reverts commit ce7a1a5897c10c22e9faf7d774a3f23c11a2b90b. --- configs/task_profiles/cgroups_26.json | 11 -- configs/task_profiles/task_profiles_26.json | 135 -------------------- device.mk | 7 - 3 files changed, 153 deletions(-) delete mode 100644 configs/task_profiles/cgroups_26.json delete mode 100644 configs/task_profiles/task_profiles_26.json diff --git a/configs/task_profiles/cgroups_26.json b/configs/task_profiles/cgroups_26.json deleted file mode 100644 index 17d4929..0000000 --- a/configs/task_profiles/cgroups_26.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "Cgroups": [ - { - "Controller": "schedtune", - "Path": "/dev/stune", - "Mode": "0755", - "UID": "system", - "GID": "system" - } - ] -} diff --git a/configs/task_profiles/task_profiles_26.json b/configs/task_profiles/task_profiles_26.json deleted file mode 100644 index 9f83785..0000000 --- a/configs/task_profiles/task_profiles_26.json +++ /dev/null @@ -1,135 +0,0 @@ -{ - "Attributes": [ - { - "Name": "STuneBoost", - "Controller": "schedtune", - "File": "schedtune.boost" - }, - { - "Name": "STunePreferIdle", - "Controller": "schedtune", - "File": "schedtune.prefer_idle" - } - ], - - "Profiles": [ - { - "Name": "HighEnergySaving", - "Actions": [ - { - "Name": "JoinCgroup", - "Params": - { - "Controller": "schedtune", - "Path": "background" - } - } - ] - }, - { - "Name": "NormalPerformance", - "Actions": [ - { - "Name": "JoinCgroup", - "Params": - { - "Controller": "schedtune", - "Path": "" - } - } - ] - }, - { - "Name": "HighPerformance", - "Actions": [ - { - "Name": "JoinCgroup", - "Params": - { - "Controller": "schedtune", - "Path": "foreground" - } - } - ] - }, - { - "Name": "MaxPerformance", - "Actions": [ - { - "Name": "JoinCgroup", - "Params": - { - "Controller": "schedtune", - "Path": "top-app" - } - } - ] - }, - { - "Name": "RealtimePerformance", - "Actions": [ - { - "Name": "JoinCgroup", - "Params": - { - "Controller": "schedtune", - "Path": "rt" - } - } - ] - }, - { - "Name": "CameraServicePerformance", - "Actions": [ - { - "Name": "JoinCgroup", - "Params": - { - "Controller": "schedtune", - "Path": "camera-daemon" - } - } - ] - }, - { - "Name": "NNApiHALPerformance", - "Actions": [ - { - "Name": "JoinCgroup", - "Params": - { - "Controller": "schedtune", - "Path": "nnapi-hal" - } - } - ] - }, - - { - "Name": "CpuPolicySpread", - "Actions": [ - { - "Name": "SetAttribute", - "Params": - { - "Name": "STunePreferIdle", - "Value": "1" - } - } - ] - }, - { - "Name": "CpuPolicyPack", - "Actions": [ - { - "Name": "SetAttribute", - "Params": - { - "Name": "STunePreferIdle", - "Value": "0" - } - } - ] - } - ] -} diff --git a/device.mk b/device.mk index 5fe0a54..fb1544b 100644 --- a/device.mk +++ b/device.mk @@ -79,13 +79,6 @@ PRODUCT_COPY_FILES += \ PRODUCT_PACKAGES += \ androidx.window.extensions -# Task profiles -PRODUCT_COPY_FILES += \ - $(DEVICE_PATH)/configs/task_profiles/cgroups_26.json:$(TARGET_COPY_OUT_SYSTEM)/etc/task_profiles/cgroups_26.json \ - $(DEVICE_PATH)/configs/task_profiles/task_profiles_26.json:$(TARGET_COPY_OUT_SYSTEM)/etc/task_profiles/task_profiles_26.json \ - $(DEVICE_PATH)/configs/task_profiles/cgroups_26.json:$(TARGET_COPY_OUT_VENDOR)/etc/cgroups.json \ - $(DEVICE_PATH)/configs/task_profiles/task_profiles_26.json:$(TARGET_COPY_OUT_VENDOR)/etc/task_profiles.json - # Wifi PRODUCT_PACKAGES += \ CloverWifiOverlay