sched/fair: Favor higher cpus only for boosted tasks
authorSrinath Sridharan <srinathsr@google.com>
Fri, 29 Jul 2016 16:50:11 +0000 (17:50 +0100)
committerAmit Pundir <amit.pundir@linaro.org>
Wed, 14 Sep 2016 09:32:22 +0000 (15:02 +0530)
commitbfa1dd2bfda910b60e425974fd5dc94a6bdaccc4
tree555657db09f2d434dbcc0852486fb458eb8bdbad
parente86992e170b0abb448b1b612fc7a1f08f2809bed
sched/fair: Favor higher cpus only for boosted tasks

This CL separates the notion of boost and prefer_idle schedtune
attributes in cpu selection. Today only top-app
tasks are boosted. The CPU selection is slightly tweaked such that
higher order cpus are preferred only for boosted tasks (top-app) and the
rest would be skewed towards lower order cpus.
This avoids starvation issues for fg tasks when interacting with high
priority top-app tasks (a problem often seen in the case of system_server).

bug: 30245369
bug: 30292998
Change-Id: I0377e00893b9f6586eec55632a265518fd2fa8a1

Conflicts:
kernel/sched/fair.c
kernel/sched/fair.c