OSDN Git Service

sched/fair: Add a backup_cpu to find_best_target
authorChris Redpath <chris.redpath@arm.com>
Tue, 4 Jul 2017 09:19:58 +0000 (10:19 +0100)
committerChris Redpath <chris.redpath@arm.com>
Tue, 25 Jul 2017 15:31:00 +0000 (16:31 +0100)
commit2e13f308a9854f5ff2b3735f4dc58c2a10cf7ea1
tree0c80c68f30c62a805e30b2d1bafb7085e21e7050
parent6cb8fcccb26e999a1745d208135c8cea7091639c
sched/fair: Add a backup_cpu to find_best_target

Sometimes we find a target cpu but then we do not use it as
the energy_diff indicates that we would increase energy usage
or not save anything. To offer an additional option for those
cases, we return a second option which is what we would have
selected if the target CPU had not been found. This gives us
another chance to try to save some energy.

Change-Id: I42c4f20aba10e4cf65b51ac4153e2e00e534c8c7
Signed-off-by: Chris Redpath <chris.redpath@arm.com>
Signed-off-by: Patrick Bellasi <patrick.bellasi@arm.com>
kernel/sched/fair.c