Migrate to gs-common/storage/init.storage.rc
Bug: 311655524 Change-Id: I084717957a3bdf0bcbdca06502867d8e108ac139 Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
This commit is contained in:
parent
7766f6743c
commit
eb637fe036
1 changed files with 0 additions and 52 deletions
|
@ -16,12 +16,8 @@ on init
|
||||||
write /proc/vendor_sched/teo_util_threshold "1024 1024 1024"
|
write /proc/vendor_sched/teo_util_threshold "1024 1024 1024"
|
||||||
|
|
||||||
# Boot time fs tuning
|
# Boot time fs tuning
|
||||||
write /sys/block/sda/queue/iostats 0
|
|
||||||
write /sys/block/sda/queue/scheduler bfq
|
write /sys/block/sda/queue/scheduler bfq
|
||||||
write /sys/block/sda/queue/iosched/slice_idle 0
|
write /sys/block/sda/queue/iosched/slice_idle 0
|
||||||
write /sys/block/sda/queue/nr_requests 256
|
|
||||||
write /dev/sys/fs/by-name/userdata/data_io_flag 56
|
|
||||||
write /dev/sys/fs/by-name/userdata/node_io_flag 56
|
|
||||||
|
|
||||||
chown system system /proc/vendor_sched/groups/bg/set_task_group
|
chown system system /proc/vendor_sched/groups/bg/set_task_group
|
||||||
chown system system /proc/vendor_sched/groups/cam/set_task_group
|
chown system system /proc/vendor_sched/groups/cam/set_task_group
|
||||||
|
@ -101,15 +97,6 @@ on init
|
||||||
chmod 0220 /proc/vendor_sched/pmu_poll_enable
|
chmod 0220 /proc/vendor_sched/pmu_poll_enable
|
||||||
chmod 0220 /proc/vendor_sched/pmu_poll_time
|
chmod 0220 /proc/vendor_sched/pmu_poll_time
|
||||||
|
|
||||||
wait /dev/block/platform/${ro.boot.boot_devices}
|
|
||||||
symlink /dev/block/platform/${ro.boot.boot_devices} /dev/block/bootdevice
|
|
||||||
|
|
||||||
# to access UFS/eMMC sysfs directly
|
|
||||||
symlink /sys/devices/platform/${ro.boot.boot_devices} /dev/sys/block/bootdevice
|
|
||||||
|
|
||||||
# Disable UFS powersaving
|
|
||||||
write /dev/sys/block/bootdevice/clkgate_enable 0
|
|
||||||
|
|
||||||
start vendor.keymaster-3-0
|
start vendor.keymaster-3-0
|
||||||
|
|
||||||
# ZRAM setup
|
# ZRAM setup
|
||||||
|
@ -501,15 +488,6 @@ on early-boot
|
||||||
# Wait for insmod_sh to finish all common modules
|
# Wait for insmod_sh to finish all common modules
|
||||||
wait_for_prop vendor.common.modules.ready 1
|
wait_for_prop vendor.common.modules.ready 1
|
||||||
|
|
||||||
# Permission for Health Storage HAL
|
|
||||||
chown system system /dev/sys/block/bootdevice/manual_gc
|
|
||||||
|
|
||||||
# Permission for Pixelstats
|
|
||||||
chown system system /dev/sys/block/bootdevice/slowio_read_cnt
|
|
||||||
chown system system /dev/sys/block/bootdevice/slowio_write_cnt
|
|
||||||
chown system system /dev/sys/block/bootdevice/slowio_unmap_cnt
|
|
||||||
chown system system /dev/sys/block/bootdevice/slowio_sync_cnt
|
|
||||||
|
|
||||||
on boot
|
on boot
|
||||||
|
|
||||||
# Allow to access debugfs for system:system
|
# Allow to access debugfs for system:system
|
||||||
|
@ -697,20 +675,6 @@ on property:init.svc.vendor.charger=running
|
||||||
write /sys/devices/system/cpu/cpu7/online 0
|
write /sys/devices/system/cpu/cpu7/online 0
|
||||||
|
|
||||||
on property:sys.boot_completed=1
|
on property:sys.boot_completed=1
|
||||||
|
|
||||||
# Runtime fs tuning
|
|
||||||
write /sys/block/sda/queue/nr_requests 64
|
|
||||||
write /sys/block/sda/queue/iostats 1
|
|
||||||
write /dev/sys/fs/by-name/userdata/data_io_flag 8
|
|
||||||
write /dev/sys/fs/by-name/userdata/node_io_flag 8
|
|
||||||
|
|
||||||
# Permission for Pixelstats
|
|
||||||
chown system system /dev/sys/fs/by-name/userdata/compr_written_block
|
|
||||||
chown system system /dev/sys/fs/by-name/userdata/compr_saved_block
|
|
||||||
chown system system /dev/sys/fs/by-name/userdata/compr_new_inode
|
|
||||||
chown system system /dev/sys/fs/by-name/userdata/gc_segment_mode
|
|
||||||
chown system system /dev/sys/fs/by-name/userdata/gc_reclaimed_segments
|
|
||||||
|
|
||||||
# Enable ZRAM on boot_complete
|
# Enable ZRAM on boot_complete
|
||||||
swapon_all /vendor/etc/fstab.${ro.board.platform}
|
swapon_all /vendor/etc/fstab.${ro.board.platform}
|
||||||
write /proc/sys/vm/swappiness 60
|
write /proc/sys/vm/swappiness 60
|
||||||
|
@ -722,9 +686,6 @@ on property:sys.boot_completed=1
|
||||||
write /proc/sys/vm/dirty_expire_centisecs 3000
|
write /proc/sys/vm/dirty_expire_centisecs 3000
|
||||||
write /proc/sys/vm/dirty_background_ratio 10
|
write /proc/sys/vm/dirty_background_ratio 10
|
||||||
|
|
||||||
# Enable UFS powersaving
|
|
||||||
write /dev/sys/block/bootdevice/clkgate_enable 1
|
|
||||||
|
|
||||||
# Reset DDR frequency
|
# Reset DDR frequency
|
||||||
write /sys/devices/platform/17000010.devfreq_mif/devfreq/17000010.devfreq_mif/exynos_data/cancel_boot_freq 1
|
write /sys/devices/platform/17000010.devfreq_mif/devfreq/17000010.devfreq_mif/exynos_data/cancel_boot_freq 1
|
||||||
write /sys/devices/platform/17000020.devfreq_int/devfreq/17000020.devfreq_int/exynos_data/cancel_boot_freq 1
|
write /sys/devices/platform/17000020.devfreq_int/devfreq/17000020.devfreq_int/exynos_data/cancel_boot_freq 1
|
||||||
|
@ -975,16 +936,6 @@ on charger
|
||||||
mkdir /dev/thermal/cdev-by-name 0750 system system
|
mkdir /dev/thermal/cdev-by-name 0750 system system
|
||||||
start vendor.thermal.symlinks
|
start vendor.thermal.symlinks
|
||||||
|
|
||||||
# Runtime fs tuning
|
|
||||||
write /sys/block/sda/queue/nr_requests 64
|
|
||||||
write /sys/block/sda/queue/iostats 1
|
|
||||||
write /sys/block/sda/queue/iosched/slice_idle 0
|
|
||||||
write /dev/sys/fs/by-name/userdata/data_io_flag 8
|
|
||||||
write /dev/sys/fs/by-name/userdata/node_io_flag 8
|
|
||||||
|
|
||||||
# Enable UFS powersaving
|
|
||||||
write /dev/sys/block/bootdevice/clkgate_enable 1
|
|
||||||
|
|
||||||
# Cancel boot devfreq and uclamp
|
# Cancel boot devfreq and uclamp
|
||||||
write /sys/devices/platform/17000010.devfreq_mif/devfreq/17000010.devfreq_mif/exynos_data/cancel_boot_freq 1
|
write /sys/devices/platform/17000010.devfreq_mif/devfreq/17000010.devfreq_mif/exynos_data/cancel_boot_freq 1
|
||||||
write /sys/devices/platform/17000020.devfreq_int/devfreq/17000020.devfreq_int/exynos_data/cancel_boot_freq 1
|
write /sys/devices/platform/17000020.devfreq_int/devfreq/17000020.devfreq_int/exynos_data/cancel_boot_freq 1
|
||||||
|
@ -1004,10 +955,7 @@ on property:vendor.disable.bcl.control=1
|
||||||
on property:vendor.disable.bcl.control=0
|
on property:vendor.disable.bcl.control=0
|
||||||
write /sys/devices/virtual/pmic/mitigation/instruction/enable_mitigation 1
|
write /sys/devices/virtual/pmic/mitigation/instruction/enable_mitigation 1
|
||||||
|
|
||||||
# UFS
|
|
||||||
on property:ro.boot.mode=charger && property:init.svc.vendor.charger=running
|
on property:ro.boot.mode=charger && property:init.svc.vendor.charger=running
|
||||||
# Enable UFS powersaving in Off Mode Charger
|
|
||||||
write /dev/sys/block/bootdevice/clkgate_enable 1
|
|
||||||
# Disable dock-defend in Off Mode Charger
|
# Disable dock-defend in Off Mode Charger
|
||||||
write /sys/devices/platform/google,charger/dd_state -1
|
write /sys/devices/platform/google,charger/dd_state -1
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue