Re: [PATCH] sched: idle: Avoid retaining the tick when it has been stopped

From: Tony Lindgren
Date: Tue Aug 21 2018 - 19:21:51 EST


* Rafael J. Wysocki <rjw@xxxxxxxxxxxxx> [691231 23:00]:
> From: Rafael J. Wysocki <rafael.j.wysocki@xxxxxxxxx>
>
> If the tick has been stopped already, but the governor has not asked to
> stop it (which it can do sometimes), the idle loop should invoke
> tick_nohz_idle_stop_tick(), to let tick_nohz_stop_tick() take care
> of this case properly.
>
> Fixes: 554c8aa8ecad (sched: idle: Select idle state before stopping the tick)

This patch seems to fix an issue where boot hangs occasionally
on beagleboard-xm with ARM multi_v7_defconfig as reported by
kernelci.org and Mark Brown earlier at [0].

At least so far no boot hangs for me with this fix, so:

Tested-by: Tony Lindgren <tony@xxxxxxxxxxx>

[0] https://www.spinics.net/lists/linux-mmc/msg50480.html