summaryrefslogtreecommitdiff
path: root/rootdir/init-debug.rc
diff options
context:
space:
mode:
authorMark Salyzyn <salyzyn@google.com>2016-01-28 09:32:53 -0800
committerMark Salyzyn <salyzyn@google.com>2016-02-04 13:10:19 -0800
commit7864e3675161ace4d6e54f32a822a90d2e1960f0 (patch)
treee31b381501449dbbdbdec632de4cc5d11111257b /rootdir/init-debug.rc
parent5b89b49fc9793243b0ff928132a0052ac0b2d9c3 (diff)
init-debug.rc: add runtime mmc max speed property actors
persist.mmc.max_read_speed - KB/s speed cap persist.mmc.max_write_speed - KB/s speed cap persist.mmc.cache_size - MB of high-speed on-device write cache device default directly to associated /sys/block/mmcblk0/ attributes, not delivered on "user" builds. Bug: 26976972 Change-Id: Ic82b9614489b6406ce830d127c85affc9095e256
Diffstat (limited to 'rootdir/init-debug.rc')
-rw-r--r--rootdir/init-debug.rc8
1 files changed, 8 insertions, 0 deletions
diff --git a/rootdir/init-debug.rc b/rootdir/init-debug.rc
new file mode 100644
index 000000000..435d4cb25
--- /dev/null
+++ b/rootdir/init-debug.rc
@@ -0,0 +1,8 @@
+on property:persist.mmc.max_read_speed=*
+ write /sys/block/mmcblk0/max_read_speed ${persist.mmc.max_read_speed}
+
+on property:persist.mmc.max_write_speed=*
+ write /sys/block/mmcblk0/max_write_speed ${persist.mmc.max_write_speed}
+
+on property:persist.mmc.cache_size=*
+ write /sys/block/mmcblk0/cache_size ${persist.mmc.cache_size}