Re: [patch-rt] softirq: Move ksoftirqd_running() under !CONFIG_PREEMPT_RT_FULL

From: Sebastian Andrzej Siewior
Date: Fri Jan 20 2017 - 12:23:46 EST


On 2016-12-31 09:20:10 [+0100], Mike Galbraith wrote:
>
> Otherwise, ktimersoftd may not be awakened when it has work to do.

so the problem is that we have two softirq threads and we only check
the state of the "normal" one even if we would have also the schedule
the second one.
The approach looks good, applied.

> [ 84.087571] NOHZ: local_softirq_pending 02
> [ 84.087593] NOHZ: local_softirq_pending 02
> [ 84.087598] NOHZ: local_softirq_pending 02
> [ 84.087904] NOHZ: local_softirq_pending 02
> [ 84.088526] NOHZ: local_softirq_pending 02
> [ 84.088899] NOHZ: local_softirq_pending 02
> [ 84.089463] NOHZ: local_softirq_pending 02
> [ 115.013470] NOHZ: local_softirq_pending 02
> [ 115.013601] NOHZ: local_softirq_pending 02
> [ 115.013709] NOHZ: local_softirq_pending 02
>
> Signed-off-by: Mike Galbraith <efault@xxxxxx>

Sebastian