]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
parisc: Prevent hung tasks when printing inventory on serial console
authorHelge Deller <deller@gmx.de>
Fri, 19 Jan 2024 20:16:39 +0000 (21:16 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 23 Feb 2024 08:24:55 +0000 (09:24 +0100)
commit63bc8a3940834b334e8fe7c265ec056fba00c269
tree15b7d8344d9264c5c16e9ecc5bc1247ec6a5d558
parent7f5375875e84c45fdbf7d3fed2f4475f67d28a8b
parisc: Prevent hung tasks when printing inventory on serial console

commit c8708d758e715c3824a73bf0cda97292b52be44d upstream.

Printing the inventory on a serial console can be quite slow and thus may
trigger the hung task detector (CONFIG_DETECT_HUNG_TASK=y) and possibly
reboot the machine. Adding a cond_resched() prevents this.

Signed-off-by: Helge Deller <deller@gmx.de>
Cc: <stable@vger.kernel.org> # v6.0+
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/parisc/kernel/drivers.c