init: Reserve CPUs for top-app correctly in EAS 1.2

EAS v1.2 uses different search ordering in the wakeup-path.  Now cores 4
and 5 will be searched first for top-app, update the cpusets accordingly:

Littles   Bigs
0 1 2 3   4 5 6 7
T T T T   T T T T  (top-app)
F F F F       F F  (foreground)
S S S S            (system background)
B B                (background)

Bug: 36367381

Change-Id: I7f70493ff45779d1c17f19465bf3eeeb8905e05b
Signed-off-by: Joel Fernandes <joelaf@google.com>
This commit is contained in:
Joel Fernandes
2017-04-13 01:57:22 -07:00
parent 97bfbcc96c
commit 6f8a846e2a

View File

@@ -420,8 +420,8 @@ service per_proxy /vendor/bin/pm-proxy
on property:sys.boot_completed=1
write /dev/cpuset/top-app/cpus 0-7
write /dev/cpuset/foreground/boost/cpus 0-5
write /dev/cpuset/foreground/cpus 0-5
write /dev/cpuset/foreground/boost/cpus 0-3,6-7
write /dev/cpuset/foreground/cpus 0-3,6-7
write /dev/cpuset/background/cpus 0-1
write /dev/cpuset/system-background/cpus 0-3