sched/fair: Respect wake to idle over sync wakeup
Sync wakeup currently takes precedence over wake to idle flag. A sync
wakeup causes a task to be placed on a non-idle CPU because we expect
this CPU to become idle very shortly. However, even though the sync flag
is set there is no guarantee that the task will go to sleep right away
As a consequence performance suffers.
Fix this by preferring an idle CPU over a potential busy cpu when both
wake to idle and sync wakeup are set.
CRs-Fixed: 2136679
Change-Id: If91649268a8fd69fd439b64dec9879d5276e09a8
Signed-off-by:
Puja Gupta <pujag@codeaurora.org>
Loading
Please register or sign in to comment