From 6f8a846e2a4baf0afe9a4ae41a91e7c672442da8 Mon Sep 17 00:00:00 2001 From: Joel Fernandes Date: Thu, 13 Apr 2017 01:57:22 -0700 Subject: [PATCH] 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 --- init.hardware.rc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/init.hardware.rc b/init.hardware.rc index d49d932a..787ed120 100644 --- a/init.hardware.rc +++ b/init.hardware.rc @@ -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