Skip to content

Commit

Permalink
[Power] default enable clock dump in userdebug rom
Browse files Browse the repository at this point in the history
Test: default enable in userdebug rom.
move write /sys/kernel/debug/clk/debug_suspend 1 from init.hardware.rc
to init.hardware.power_debug.rc.userdebug

Bug: 145566091

Change-Id: Id40a46c8ad4520512cd3f9b699c15bf940264ff2
Signed-off-by: ferrio liu <[email protected]>
  • Loading branch information
ferrio liu committed Dec 6, 2019
1 parent 2418884 commit 7d7d94e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 2 additions & 0 deletions device.mk
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,8 @@ ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT)))
$(LOCAL_PATH)/init.hardware.chamber.rc.userdebug:$(TARGET_COPY_OUT_VENDOR)/etc/init/init.$(PRODUCT_PLATFORM).chamber.rc
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/init.hardware.ipa.rc.userdebug:$(TARGET_COPY_OUT_VENDOR)/etc/init/init.$(PRODUCT_PLATFORM).ipa.rc
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/init.hardware.power_debug.rc.userdebug:$(TARGET_COPY_OUT_VENDOR)/etc/init/init.$(PRODUCT_PLATFORM).power_debug.rc
else
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/init.hardware.diag.rc.user:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.$(PRODUCT_PLATFORM).diag.rc
Expand Down
3 changes: 3 additions & 0 deletions init.hardware.power_debug.rc.userdebug
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
on init && property:vendor.skip.init=0
# Enable suspend clock reporting
write /sys/kernel/debug/clk/debug_suspend 1
4 changes: 1 addition & 3 deletions init.hardware.rc
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import /vendor/etc/init/hw/init.${ro.boot.hardware.platform}.diag.rc
import /vendor/etc/init/hw/init.${ro.boot.hardware.platform}.logging.rc
import /vendor/etc/init/hw/init.${ro.boot.hardware.platform}.mpssrfs.rc
import /vendor/etc/init/hw/init.${ro.boot.hardware.platform}.power.rc
import /vendor/etc/init/hw/init.${ro.boot.hardware.platform}.power_debug.rc

service vendor.charger /charger
class charger
Expand Down Expand Up @@ -109,9 +110,6 @@ on init && property:vendor.skip.init=0
chown system system /dev/cpuset/camera-daemon/tasks
chmod 0664 /dev/cpuset/camera-daemon/tasks

# Enable suspend clock reporting
write /sys/kernel/debug/clk/debug_suspend 1

on late-init
setprop vendor.thermal.config thermal_info_config.json
chown system system /sys/devices/virtual/thermal/tz-by-name/skin-therm-monitor/trip_point_0_temp
Expand Down

0 comments on commit 7d7d94e

Please sign in to comment.