summaryrefslogtreecommitdiffstats
path: root/rootdir
diff options
context:
space:
mode:
authorMike Chan <mike@android.com>2010-02-25 17:12:48 -0800
committerMike Chan <mike@android.com>2010-02-26 11:25:36 -0800
commita7d88224ff7283c210c25ce6d57239b4053b5f14 (patch)
tree060ae3bc41703cabec257b093adbd571c14d8fe3 /rootdir
parente2fe261d1ac775e9e6501bf976cd4fef4c1cf5dd (diff)
downloadsystem_core-a7d88224ff7283c210c25ce6d57239b4053b5f14.zip
system_core-a7d88224ff7283c210c25ce6d57239b4053b5f14.tar.gz
system_core-a7d88224ff7283c210c25ce6d57239b4053b5f14.tar.bz2
init.rc: Add cpuacct to cgroup mount for cpu statistics
Change-Id: Ic1893e1bf7b2c45659419b0bc55d42f50d030c9f Signed-off-by: Mike Chan <mike@android.com>
Diffstat (limited to 'rootdir')
-rw-r--r--rootdir/init.rc4
1 files changed, 3 insertions, 1 deletions
diff --git a/rootdir/init.rc b/rootdir/init.rc
index 7b7d7ba..97a3b38 100644
--- a/rootdir/init.rc
+++ b/rootdir/init.rc
@@ -58,7 +58,9 @@ loglevel 3
# Create cgroup mount points for process groups
mkdir /dev/cpuctl
- mount cgroup none /dev/cpuctl cpu
+ mount cgroup none /dev/cpuctl cpu,cpuacct
+ mkdir /dev/cpuctl/uid
+ chmod 0775 /dev/cpuctl/uid
chown system system /dev/cpuctl
chown system system /dev/cpuctl/tasks
chmod 0777 /dev/cpuctl/tasks