sched/fair: Defer calculation of 'prev_eff_load' in wake_affine_weight() until needed
authorMel Gorman <mgorman@techsingularity.net>
Tue, 13 Feb 2018 13:37:26 +0000 (13:37 +0000)
committerIngo Molnar <mingo@kernel.org>
Wed, 21 Feb 2018 07:49:07 +0000 (08:49 +0100)
commiteeb60398639143c11ff2c8b509e3a471411bb5d3
treeb90b51b9b227d957e5c5de21481273bcbf9d3365
parent7ebb66a12f85bc375beaf45ca900427fe47aa8f7
sched/fair: Defer calculation of 'prev_eff_load' in wake_affine_weight() until needed

On sync wakeups, the previous CPU effective load may not be used so delay
the calculation until it's needed.

Signed-off-by: Mel Gorman <mgorman@techsingularity.net>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Giovanni Gherdovich <ggherdovich@suse.cz>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Matt Fleming <matt@codeblueprint.co.uk>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/20180213133730.24064-3-mgorman@techsingularity.net
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/sched/fair.c