]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - ti-linux-kernel/ti-linux-kernel.git/commit
arm: lazy preempt: correct resched condition
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Tue, 24 May 2016 10:56:38 +0000 (12:56 +0200)
committerSteven Rostedt <rostedt@goodmis.org>
Tue, 12 Jul 2016 20:59:12 +0000 (16:59 -0400)
commit8680e26a3c54c1d5452c8de20b9c8d4107eff3fd
tree088d346fa6d8d87185af36a96e8af7df81380fe8
parent6855628c1a8dcd6464dd17bc45179dc588f667cf
arm: lazy preempt: correct resched condition

If we get out of preempt_schedule_irq() then we check for NEED_RESCHED
and call the former function again if set because the preemption counter
has be zero at this point.
However the counter for lazy-preempt might not be zero therefore we have
to check the counter before looking at the need_resched_lazy flag.

Cc: stable-rt@vger.kernel.org
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
arch/arm/kernel/entry-armv.S