sched/fair: Move avg_scan_cost calculations under SIS_PROP
authorMel Gorman <mgorman@techsingularity.net>
Mon, 25 Jan 2021 08:59:07 +0000 (08:59 +0000)
committerPeter Zijlstra <peterz@infradead.org>
Wed, 27 Jan 2021 16:26:44 +0000 (17:26 +0100)
commitbae4ec13640b0915e7dd86da7e65c5d085160571
treef3e804e29c67da9cceca309bdbaad323739456d4
parente6e0dc2d5497f7f3ed970052917e2923c6f453f4
sched/fair: Move avg_scan_cost calculations under SIS_PROP

As noted by Vincent Guittot, avg_scan_costs are calculated for SIS_PROP
even if SIS_PROP is disabled. Move the time calculations under a SIS_PROP
check and while we are at it, exclude the cost of initialising the CPU
mask from the average scan cost.

Signed-off-by: Mel Gorman <mgorman@techsingularity.net>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Vincent Guittot <vincent.guittot@linaro.org>
Link: https://lkml.kernel.org/r/20210125085909.4600-3-mgorman@techsingularity.net
kernel/sched/fair.c