]> www.infradead.org Git - users/jedix/linux-maple.git/commit
tick/sched: Prevent false positive softirq pending warnings on RT
authorThomas Gleixner <tglx@linutronix.de>
Tue, 9 Mar 2021 08:55:57 +0000 (09:55 +0100)
committerPaul E. McKenney <paulmck@kernel.org>
Tue, 6 Apr 2021 23:07:13 +0000 (16:07 -0700)
commit4ad0ca1b425fc68a9227bf36c4ef6d9f9133953b
tree070cc7e64c8c7f7c91420c486e0c11cdfee6ced6
parent484ad9f0100cff752220a6157b583272df734b2d
tick/sched: Prevent false positive softirq pending warnings on RT

On RT a task which has soft interrupts disabled can block on a lock and
schedule out to idle while soft interrupts are pending. This triggers the
warning in the NOHZ idle code which complains about going idle with pending
soft interrupts. But as the task is blocked soft interrupt processing is
temporarily blocked as well which means that such a warning is a false
positive.

To prevent that check the per CPU state which indicates that a scheduled
out task has soft interrupts disabled.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Tested-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Reviewed-by: Frederic Weisbecker <frederic@kernel.org>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
include/linux/bottom_half.h
kernel/softirq.c
kernel/time/tick-sched.c