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

Skip to content
Commit 10baf3bf authored by Joonwoo Park's avatar Joonwoo Park Committed by Pavankumar Kondeti
Browse files

sched: optimize select_best_cpu() with same power cost CPU mask



At present, the function select_best_cpu() has to continue to iterate the
search CPUs for the possibility of finding a more power efficient CPU even
if the best CPU based on cstate already found.  However many of MSM
big/Little processors share an identical power cost information table for
the power efficient cluster CPUs so we can avoid this unnecessary searches
mostly.

Introduce kernel parameter 'sched_same_power_cost_cpus' to inform the
CPU mask that has an identical power costs and optimize the 'for' loop of
select_best_cpu() by rulling out CPUs that cannot be more power efficient
than cstate based best CPU with the same power cost CPU mask.

CRs-fixed: 849655
Change-Id: I9d2e7f560282a914fd0373aac6714353b9d1e36c
[joonwoop@codeaurora.org: as this branch doesn't practically support EA,
 trimmed out all about kernel parameter 'sched_same_power_cost_cpus' but
 adopted idea to clear out search CPUs upon min_cstate == 0.]
Signed-off-by: default avatarJoonwoo Park <joonwoop@codeaurora.org>
parent 78299243
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