Commit 605a5027 authored by Quentin Perret's avatar Quentin Perret Committed by Xin Li
Browse files

FROMLIST: sched/fair: Fix overutilized update in enqueue_task_fair()



enqueue_task_fair() attempts to skip the overutilized update for new
tasks as their util_avg is not accurate yet. However, the flag we check
to do so is overwritten earlier on in the function, which makes the
condition pretty much a nop.

Fix this by saving the flag early on.

Fixes: 2802bf3c ("sched/fair: Add over-utilization/tipping point
indicator")
Reported-by: default avatarRick Yiu <rickyiu@google.com>
Bug: 173106751
Signed-off-by: default avatarQuentin Perret <qperret@google.com>
Signed-off-by: default avatarRick Yiu <rickyiu@google.com>
Change-Id: I0a31fe4a4403fa03d1eee604adad5b6d9aff2c72
parent 1e4de875
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment