From 89f235c5e028466bb273dbaacb3346f1f0ba9f1e Mon Sep 17 00:00:00 2001 From: Mike Chan Date: Mon, 1 Mar 2010 11:36:10 -0800 Subject: [PATCH] init.rc: Add cpuacct to cgroup mount for cpu statistic Cpu accounting statistics expored in /acct Change-Id: I8a35816e94b69d9e67a3dd65aae16520864777d7 Signed-off-by: Mike Chan --- rootdir/init.rc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/rootdir/init.rc b/rootdir/init.rc index 7b7d7ba04..4a6701171 100644 --- a/rootdir/init.rc +++ b/rootdir/init.rc @@ -24,6 +24,11 @@ loglevel 3 mkdir /mnt 0775 root system mkdir /mnt/sdcard 0000 system system +# Create cgroup mount point for cpu accounting + mkdir /acct + mount cgroup none /acct cpuacct + mkdir /acct/uid + # Backwards Compat - XXX: Going away in G* symlink /mnt/sdcard /sdcard