cm: Clean up cgroups even more!
* Only one is needed!
Change-Id: Ib79864bf2b7a3d86a2bad91de01a9b82279f4a91
diff --git a/prebuilt/common/etc/init.local.rc b/prebuilt/common/etc/init.local.rc
index 3082cfa..83a5cb1 100644
--- a/prebuilt/common/etc/init.local.rc
+++ b/prebuilt/common/etc/init.local.rc
@@ -9,39 +9,16 @@
chmod 0755 /sys/fs/cgroup
mkdir /sys/fs/cgroup/bfqio 0755 root system
mount cgroup none /sys/fs/cgroup/bfqio bfqio
- write /sys/fs/cgroup/bfqio/bfqio.ioprio_class 2
- write /sys/fs/cgroup/bfqio/bfqio.ioprio 4
chown root system /sys/fs/cgroup/bfqio/tasks
chmod 0666 /sys/fs/cgroup/bfqio/tasks
- # Realtime audio class
- mkdir /sys/fs/cgroup/bfqio/rt-audio 0755 root system
- write /sys/fs/cgroup/bfqio/rt-audio/bfqio.ioprio_class 1
- write /sys/fs/cgroup/bfqio/rt-audio/bfqio.ioprio 4
- chown media system /sys/fs/cgroup/bfqio/rt-audio/tasks
- chmod 0664 /sys/fs/cgroup/bfqio/rt-audio/tasks
-
- # Realtime display class
+ # Soft realtime class for display service
mkdir /sys/fs/cgroup/bfqio/rt-display 0755 root system
write /sys/fs/cgroup/bfqio/rt-display/bfqio.ioprio_class 1
write /sys/fs/cgroup/bfqio/rt-display/bfqio.ioprio 7
chown system system /sys/fs/cgroup/bfqio/rt-display/tasks
chmod 0664 /sys/fs/cgroup/bfqio/rt-display/tasks
- # Background class
- mkdir /sys/fs/cgroup/bfqio/bg 0755 root system
- write /sys/fs/cgroup/bfqio/bg/bfqio.ioprio_class 2
- write /sys/fs/cgroup/bfqio/bg/bfqio.ioprio 7
- chown root system /sys/fs/cgroup/bfqio/bg/tasks
- chmod 0666 /sys/fs/cgroup/bfqio/bg/tasks
-
- # Idle
- mkdir /sys/fs/cgroup/bfqio/idle 0755 root system
- write /sys/fs/cgroup/bfqio/idle/bfqio.ioprio_class 3
- write /sys/fs/cgroup/bfqio/idle/bfqio.ioprio 0
- chown root system /sys/fs/cgroup/bfqio/idle/tasks
- chmod 0666 /sys/fs/cgroup/bfqio/idle/tasks
-
on post-fs-data
mkdir /data/.ssh 0750 root shell
mkdir /cache/recovery 0770 system cache