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)
committerHelge Deller <deller@gmx.de>
Sun, 28 Jan 2024 08:49:47 +0000 (09:49 +0100)
commitc8708d758e715c3824a73bf0cda97292b52be44d
treeda08af9996348dd9973cdd33fe152a1ad024e30b
parentb9402e3b97289ca9e0f0f79f4df64bd6c9176a86
parisc: Prevent hung tasks when printing inventory on serial console

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+
arch/parisc/kernel/drivers.c