فهرست منبع

Enable ADPF CPU hints for SF am: b031889746 am: 76e6021424

Original change: https://googleplex-android-review.googlesource.com/c/device/google/lynx/+/19772297

Change-Id: I2106e3749d356819690bf84e76baec270bf9b219
Signed-off-by: Automerger Merge Worker <[email protected]>
jimmyshiu 2 سال پیش
والد
کامیت
78019e2414
3فایلهای تغییر یافته به همراه12 افزوده شده و 22 حذف شده
  1. 8 0
      conf/init.lynx.rc
  2. 4 0
      device-lynx.mk
  3. 0 22
      powerhint.json

+ 8 - 0
conf/init.lynx.rc

@@ -89,3 +89,11 @@ on property:vendor.device.modules.ready=1
     chown system system /sys/devices/virtual/goog_touch_interface/gti.0/ss_base
     chown system system /sys/devices/virtual/goog_touch_interface/gti.0/ss_diff
     chown system system /sys/devices/virtual/goog_touch_interface/gti.0/ss_raw
+
+# Override SF and RE uclamps to 0 on boot after being set elsewhere, for adpf cpu hints
+on property:sys.boot_completed=1
+    trigger override-sf-uclamp
+
+on override-sf-uclamp
+    write /proc/vendor_sched/rt_uclamp_min 0
+    write /proc/vendor_sched/sf_uclamp_min 0

+ 4 - 0
device-lynx.mk

@@ -212,3 +212,7 @@ PRODUCT_VENDOR_PROPERTIES += \
 # Device features
 PRODUCT_COPY_FILES += \
     frameworks/native/data/etc/handheld_core_hardware.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/handheld_core_hardware.xml
+
+# Enable adpf cpu hint session for SurfaceFlinger
+PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \
+    debug.sf.enable_adpf_cpu_hint=true

+ 0 - 22
powerhint.json

@@ -169,16 +169,6 @@
       ],
       "ResetOnInit": true
     },
-    {
-      "Name": "SFUClampBoost",
-      "Path": "/proc/vendor_sched/sf_uclamp_min",
-      "Values": [
-        "159",
-        "85",
-        "39"
-      ],
-      "ResetOnInit": true
-    },
     {
       "Name": "MLUclampBoost",
       "Path": "/proc/vendor_sched/nnapi_uclamp_min",
@@ -497,12 +487,6 @@
     }
   ],
   "Actions": [
-    {
-      "PowerHint": "INTERACTION",
-      "Node": "SFUClampBoost",
-      "Duration": 5000,
-      "Value": "85"
-    },
     {
       "PowerHint": "LAUNCH",
       "Node": "UClampThreshold",
@@ -521,12 +505,6 @@
       "Duration": 5000,
       "Value": "1"
     },
-    {
-      "PowerHint": "LAUNCH",
-      "Node": "SFUClampBoost",
-      "Duration": 5000,
-      "Value": "85"
-    },
     {
       "PowerHint": "LAUNCH",
       "Node": "CPUBigClusterMaxFreq",