Files
android_kernel_fxtec_sm6115/kernel
Quentin Perret 444683e9df BACKPORT: sched/fair: Fix overutilized update in enqueue_task_fair()
[ Upstream commit 8e1ac4299a6e8726de42310d9c1379f188140c71 ]

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: 2802bf3cd936 ("sched/fair: Add over-utilization/tipping point indicator")
Reported-by: Rick Yiu <rickyiu@google.com>
Signed-off-by: Quentin Perret <qperret@google.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Vincent Guittot <vincent.guittot@linaro.org>
Reviewed-by: Valentin Schneider <valentin.schneider@arm.com>
Link: https://lkml.kernel.org/r/20201112111201.2081902-1-qperret@google.com
Change-Id: I04a99c7db2d0559e838343762a928ac6caa1a9c4
2020-11-24 16:51:57 +00:00
..
2019-12-13 08:51:11 +01:00
2019-12-01 09:17:17 +01:00
2020-04-29 19:16:15 +02:00
2020-06-22 10:50:54 +02:00
2020-11-19 12:25:33 +01:00
2020-01-15 14:51:23 +00:00
2019-12-01 09:53:43 +01:00
2020-03-25 08:06:13 +01:00
2019-08-12 13:36:37 -04:00
2020-10-01 16:49:05 +02:00
2020-01-09 10:18:59 +01:00