From eafa76a130f88d08741882a9a5490de211cfdb52 Mon Sep 17 00:00:00 2001 From: Zhao Wei Liew Date: Fri, 11 Aug 2017 09:51:07 +0200 Subject: [PATCH] land: Add support for top-app cpuset Change-Id: I8a8540313572a4d109c06d0de11c1dd6a7b50f5a --- rootdir/init.qcom.power.rc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/rootdir/init.qcom.power.rc b/rootdir/init.qcom.power.rc index 8c95dec..533a491 100644 --- a/rootdir/init.qcom.power.rc +++ b/rootdir/init.qcom.power.rc @@ -4,10 +4,12 @@ on boot write /sys/class/net/rmnet0/queues/rx-0/rps_cpus 2 # Update foreground and background cpusets - write /dev/cpuset/foreground/cpus 0-7 + # Reserve CPU 7 for the top app + write /dev/cpuset/foreground/cpus 0-6 write /dev/cpuset/foreground/boost/cpus 0-3 write /dev/cpuset/background/cpus 4-5 - write /dev/cpuset/system-background/cpus 4-7 + write /dev/cpuset/system-background/cpus 4-6 + write /dev/cpuset/top-app/cpus 0-7 on enable-low-power # HMP scheduler settings