author | Sebastian Andrzej Siewior <bigeasy@linutronix.de> | |
Tue, 24 May 2016 10:56:38 +0000 (12:56 +0200) | ||
committer | Steven Rostedt <rostedt@goodmis.org> | |
Tue, 12 Jul 2016 20:59:12 +0000 (16:59 -0400) | ||
commit | 8680e26a3c54c1d5452c8de20b9c8d4107eff3fd | |
tree | 088d346fa6d8d87185af36a96e8af7df81380fe8 | tree | snapshot (tar.xz tar.gz zip) |
parent | 6855628c1a8dcd6464dd17bc45179dc588f667cf | commit | diff |
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>
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 | diff | blob | history |