diff options
| author | Chenyang Zhong <zhongcy95@gmail.com> | 2021-10-18 17:44:47 +0800 |
|---|---|---|
| committer | Ćukasz Patron <priv.luk@gmail.com> | 2022-03-15 16:38:01 +0100 |
| commit | b47cacd8670da44038903acc5f322e3a4b04ebe5 (patch) | |
| tree | d00623ffdb03ac9c8216d666506dbefc2b0f6acf | |
| parent | 7a3222a1afbf038fe5e823adaaea51a07fb88528 (diff) | |
enchilada: 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]
OnePlus 6 was launched with Oreo MR1 (API level 27), 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 <zhongcy95@gmail.com>
Change-Id: I65fe622a804a720a97b43d8092cc8a37703f4b64
| -rw-r--r-- | device.mk | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -53,6 +53,11 @@ PRODUCT_PACKAGES += \ PRODUCT_PACKAGES += \ OnePlusPocketMode +# Power +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 + # Inherit from oneplus sdm845-common $(call inherit-product, device/oneplus/sdm845-common/common.mk) |
