aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/clocksource/hyperv_timer.c
diff options
context:
space:
mode:
authorTao Zhou <[email protected]>2020-03-19 03:39:20 +0000
committerPeter Zijlstra <[email protected]>2020-03-20 12:06:20 +0000
commit6c8116c914b65be5e4d6f66d69c8142eb0648c22 (patch)
tree380520e9cbfbe99435df4f285d5894f0a2dfa840 /drivers/clocksource/hyperv_timer.c
parentsched/rt: cpupri_find: Trigger a full search as fallback (diff)
downloadkernel-6c8116c914b65be5e4d6f66d69c8142eb0648c22.tar.gz
kernel-6c8116c914b65be5e4d6f66d69c8142eb0648c22.zip
sched/fair: Fix condition of avg_load calculation
In update_sg_wakeup_stats(), the comment says: Computing avg_load makes sense only when group is fully busy or overloaded. But, the code below this comment does not check like this. From reading the code about avg_load in other functions, I confirm that avg_load should be calculated in fully busy or overloaded case. The comment is correct and the checking condition is wrong. So, change that condition. Fixes: 57abff067a08 ("sched/fair: Rework find_idlest_group()") Signed-off-by: Tao Zhou <[email protected]> Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Reviewed-by: Vincent Guittot <[email protected]> Acked-by: Mel Gorman <[email protected]> Link: https://lkml.kernel.org/r/Message-ID:
Diffstat (limited to 'drivers/clocksource/hyperv_timer.c')
0 files changed, 0 insertions, 0 deletions