vermeer: Move citsensorservice to background cpuset

This service hogs a considerable amount of CPU all the time as its
busy calculating compensation for our under-display light sensor
(and also spamming logcat, which we can take care of later).

  PID USER         PR  NI VIRT  RES  SHR S[%CPU] %MEM     TIME+ ARGS
 1969 system       20   0  12G 9.2M 9.0M S  4.6   0.1   1:13.15 vendor.xiaomi.sensor.citsensorservice@2.0-service

Move it to background CPU set like the sensors multihal to lower
power consumption from big cores.

Change-Id: I8c7b2835b2b53654642ac20fd97df3b8a5ad96eb
This commit is contained in:
Adithya R
2023-08-12 11:07:53 +05:30
committed by Lunark :3
parent 19713be803
commit 6a7709c747
2 changed files with 10 additions and 0 deletions

View File

@@ -18,6 +18,10 @@ PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/audio/mixer_paths_kalama_mtp.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_kalama/mixer_paths_kalama_mtp.xml \
$(LOCAL_PATH)/configs/audio/resourcemanager_kalama_mtp.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio/sku_kalama/resourcemanager_kalama_mtp.xml
# Init
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/init/init.vermeer.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/init.vermeer.rc
# IFAAService
PRODUCT_PACKAGES += \
IFAAService

6
init/init.vermeer.rc Normal file
View File

@@ -0,0 +1,6 @@
service citsensor-hal-2-0 /odm/bin/hw/vendor.xiaomi.sensor.citsensorservice@2.0-service
class late_start
user system
group system input
override
task_profiles ServiceCapacityLow