From f67fdef0f728380f727ca04ea39c03f72d90ccb6 Mon Sep 17 00:00:00 2001 From: Chenyang Zhong Date: Mon, 18 Oct 2021 17:44:47 +0800 Subject: msm8996-common: Ship cgroups.json and task_profiles.json Google's prebuilt cgroups.json and task_profiles.json for products launched with previous API levels only covers ro.product.first_api_level >= 28. [1] These devices were launched with M (API level 23), so schedtune and task groups are completely broken. Since the system also checks /vendor/etc for vendor profiles, make a copy of cgroups_28.json and task_profiles_28.json and ship them to /vendor/etc. Profiles for previous API levels are all the same anyway. Test: boot and check /dev/stune/ [1] system/core/libprocessgroup/profiles/ Signed-off-by: Chenyang Zhong Change-Id: I65fe622a804a720a97b43d8092cc8a37703f4b64 --- msm8996.mk | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/msm8996.mk b/msm8996.mk index 745a21d..3de9fcc 100755 --- a/msm8996.mk +++ b/msm8996.mk @@ -350,6 +350,10 @@ PRODUCT_PACKAGES += \ PRODUCT_COPY_FILES += \ $(LOCAL_PATH)/configs/powerhint.xml:$(TARGET_COPY_OUT_VENDOR)/etc/powerhint.xml +PRODUCT_COPY_FILES += \ + system/core/libprocessgroup/profiles/cgroups_28.json:$(TARGET_COPY_OUT_VENDOR)/etc/cgroups.json \ + system/core/libprocessgroup/profiles/task_profiles_28.json:$(TARGET_COPY_OUT_VENDOR)/etc/task_profiles.json + # QCOM PRODUCT_COPY_FILES += \ $(LOCAL_PATH)/configs/qti_whitelist.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/sysconfig/qti_whitelist.xml \ -- cgit v1.2.3