cm: Set the IO scheduler based on a system property

Change-Id: Iab8314ed3a204c2d4815e008503d5a3bfa6b12cc
diff --git a/prebuilt/common/etc/init.local.rc b/prebuilt/common/etc/init.local.rc
index df9ebb1..da6273e 100644
--- a/prebuilt/common/etc/init.local.rc
+++ b/prebuilt/common/etc/init.local.rc
@@ -121,6 +121,13 @@
 on property:persist.radio.noril=1
     setprop ro.radio.noril 1
 
+# Configure IO scheduler
+on property:sys.io.scheduler=*
+    write /sys/block/mmcblk0/queue/scheduler ${sys.io.scheduler}
+
+on property:persist.sys.io.scheduler=*
+    setprop sys.io.scheduler ${persist.sys.io.scheduler}
+
 # sysinit (/system/etc/init.d)
 service sysinit /system/bin/sysinit
     user root