sched: add preference for prev_cpu in HMP task placement
At present the HMP task placement algorithm scans CPUs in numerical order and if two identical options are found, the first one encountered is chosen, even if it is different from the task's previous CPU. Add a bias towards the task's previous CPU in such situations. Any time two or more CPUs are considered equivalent (load, C-state, power cost), if one of them is the task's previous CPU, bias towards that CPU. The algorithm is otherwise unchanged. Change-Id: Ic25132265f027e178b9c71301a7902cdb74493ec Signed-off-by:Steve Muckle <smuckle@codeaurora.org> [pkondeti@codeaurora.org: small tasks placement modifications] Signed-off-by:
Pavankumar Kondeti <pkondeti@codeaurora.org>
Loading
Please register or sign in to comment