Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit f8d83170 authored by Steve Muckle's avatar Steve Muckle Committed by Pavankumar Kondeti
Browse files

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.

CRs-Fixed: 772033
Change-Id: I511f5b929c2bfa6fdea9e7433893c27b29ed8026
Signed-off-by: default avatarSteve Muckle <smuckle@codeaurora.org>
[pkondeti@codeaurora.org: small tasks placement modifications]
Signed-off-by: default avatarPavankumar Kondeti <pkondeti@codeaurora.org>
parent bab2c5e7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment