ANDROID: sched/fair: unify spare capacity calculation
authorIonela Voinescu <ionela.voinescu@arm.com>
Fri, 27 Apr 2018 17:19:13 +0000 (18:19 +0100)
committerIonela Voinescu <ionela.voinescu@arm.com>
Wed, 18 Jul 2018 09:47:26 +0000 (10:47 +0100)
commit5383285d1358ea595a14436e6f14415fd0c1fa0e
tree5f2ff8996596260754d048ab3bcb15e578085f91
parent03429a533a2d3887c9306db5c3055dd7643c6d97
ANDROID: sched/fair: unify spare capacity calculation

Given that we have a few sites where the spare capacity of a CPU is
calculated as the difference between the original capacity of the CPU
and its computed new utilization, let's unify the calculation and use
that value tracked with a local spare_cap variable.

Change-Id: I78daece7543f78d4f74edbee5e9ceb62908af507
Signed-off-by: Ionela Voinescu <ionela.voinescu@arm.com>
kernel/sched/fair.c