diff options
author | Tim Murray <timmurray@google.com> | 2016-01-25 14:08:02 -0800 |
---|---|---|
committer | Tim Murray <timmurray@google.com> | 2016-01-25 14:08:02 -0800 |
commit | 8e56c2bb486f024e6ca2bbea4f88442a5595ac69 (patch) | |
tree | e6fc139c989c51ba1411c87834c7531760847457 /init.bullhead.rc | |
parent | e74a3d51107e82a246100531a509a358156825cd (diff) | |
download | bullhead-8e56c2bb486f024e6ca2bbea4f88442a5595ac69.tar.gz |
Add support for top-app cpuset.
Reserves core 3 for the top app.
Change-Id: Ie679ee97983949e44bda674db934f64bfabc0cb1
Diffstat (limited to 'init.bullhead.rc')
-rw-r--r-- | init.bullhead.rc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/init.bullhead.rc b/init.bullhead.rc index e7506f2..7f5c8f9 100644 --- a/init.bullhead.rc +++ b/init.bullhead.rc @@ -100,10 +100,13 @@ on boot exec - root root system -- /system/bin/init.bullhead.power.sh # update foreground cpuset now that processors are up - write /dev/cpuset/foreground/cpus 0-5 + # foreground gets all CPUs except CPU 3 + # CPU 3 is reserved for the top app + write /dev/cpuset/foreground/cpus 0-2,4-5 write /dev/cpuset/foreground/boost/cpus 4-5 write /dev/cpuset/background/cpus 0 - write /dev/cpuset/system-background/cpus 0-3 + write /dev/cpuset/system-background/cpus 0-2 + write /dev/cpuset/top-app/cpus 0-5 # Bluetooth chown bluetooth net_bt /sys/class/rfkill/rfkill0/type |