sched/fair: Avoid using decay_load_missed() with a negative value
authorByungchul Park <byungchul.park@lge.com>
Fri, 15 Jan 2016 07:07:49 +0000 (16:07 +0900)
committerIngo Molnar <mingo@kernel.org>
Mon, 29 Feb 2016 08:53:03 +0000 (09:53 +0100)
commit7400d3bbaa229eb8e7631d28fb34afd7cd2c96ff
tree3b7923aa56e1beae702ff554f3e4bdb8c123d69d
parent6aa447bcbb444cd1b738613a20627f288d631665
sched/fair: Avoid using decay_load_missed() with a negative value

decay_load_missed() cannot handle nagative values, so we need to prevent
using the function with a negative value.

Reported-by: Dietmar Eggemann <dietmar.eggemann@arm.com>
Signed-off-by: Byungchul Park <byungchul.park@lge.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Chris Metcalf <cmetcalf@ezchip.com>
Cc: Christoph Lameter <cl@linux.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Luiz Capitulino <lcapitulino@redhat.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Paul E . McKenney <paulmck@linux.vnet.ibm.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Rik van Riel <riel@redhat.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: perterz@infradead.org
Fixes: 59543275488d ("sched/fair: Prepare __update_cpu_load() to handle active tickless")
Link: http://lkml.kernel.org/r/20160115070749.GA1914@X58A-UD3R
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/sched/fair.c