aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDima Zavin <dima@android.com>2012-06-05 09:54:56 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2012-06-05 09:54:56 -0700
commited60e86a1a3d3b452d9b7eebadf998706ee77c19 (patch)
treec4376990ce30fd7f10492c994863e9999606dd3d
parent1a0b4c44ac6cec3c7bbd9a58ac753579fefe0a6b (diff)
parent38160c06cabe35330f49eb0f6e0cfcc3f9823f0d (diff)
downloadsystem_core-ed60e86a1a3d3b452d9b7eebadf998706ee77c19.tar.gz
system_core-ed60e86a1a3d3b452d9b7eebadf998706ee77c19.tar.bz2
system_core-ed60e86a1a3d3b452d9b7eebadf998706ee77c19.zip
am 38160c06: am df44b886: core: init.rc: create apps cgroup for fg tasks, move bg under it
* commit '38160c06cabe35330f49eb0f6e0cfcc3f9823f0d': core: init.rc: create apps cgroup for fg tasks, move bg under it
-rw-r--r--rootdir/init.rc26
1 files changed, 13 insertions, 13 deletions
diff --git a/rootdir/init.rc b/rootdir/init.rc
index aa1bb92a..6647721c 100644
--- a/rootdir/init.rc
+++ b/rootdir/init.rc
@@ -93,20 +93,20 @@ loglevel 3
write /dev/cpuctl/cpu.rt_runtime_us 950000
write /dev/cpuctl/cpu.rt_period_us 1000000
- mkdir /dev/cpuctl/foreground
- chown system system /dev/cpuctl/foreground/tasks
- chmod 0666 /dev/cpuctl/foreground/tasks
- write /dev/cpuctl/foreground/cpu.shares 1024
- write /dev/cpuctl/foreground/cpu.rt_runtime_us 100000
- write /dev/cpuctl/foreground/cpu.rt_period_us 1000000
-
- mkdir /dev/cpuctl/bg_non_interactive
- chown system system /dev/cpuctl/bg_non_interactive/tasks
- chmod 0666 /dev/cpuctl/bg_non_interactive/tasks
+ mkdir /dev/cpuctl/apps
+ chown system system /dev/cpuctl/apps/tasks
+ chmod 0666 /dev/cpuctl/apps/tasks
+ write /dev/cpuctl/apps/cpu.shares 1024
+ write /dev/cpuctl/apps/cpu.rt_runtime_us 100000
+ write /dev/cpuctl/apps/cpu.rt_period_us 1000000
+
+ mkdir /dev/cpuctl/apps/bg_non_interactive
+ chown system system /dev/cpuctl/apps/bg_non_interactive/tasks
+ chmod 0666 /dev/cpuctl/apps/bg_non_interactive/tasks
# 5.0 %
- write /dev/cpuctl/bg_non_interactive/cpu.shares 52
- write /dev/cpuctl/bg_non_interactive/cpu.rt_runtime_us 100000
- write /dev/cpuctl/bg_non_interactive/cpu.rt_period_us 1000000
+ write /dev/cpuctl/apps/bg_non_interactive/cpu.shares 52
+ write /dev/cpuctl/apps/bg_non_interactive/cpu.rt_runtime_us 100000
+ write /dev/cpuctl/apps/bg_non_interactive/cpu.rt_period_us 1000000
mkdir /dev/cpuctl/audio_app
chown system system /dev/cpuctl/audio_app/tasks