mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-29 13:53:33 +00:00
parisc: Prevent hung tasks when printing inventory on serial console
commit c8708d758e
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>
This commit is contained in:
parent
607385d75a
commit
f00e8d0fcc
1 changed files with 3 additions and 0 deletions
|
@ -1003,6 +1003,9 @@ static __init int qemu_print_iodc_data(struct device *lin_dev, void *data)
|
|||
|
||||
pr_info("\n");
|
||||
|
||||
/* Prevent hung task messages when printing on serial console */
|
||||
cond_resched();
|
||||
|
||||
pr_info("#define HPA_%08lx_DESCRIPTION \"%s\"\n",
|
||||
hpa, parisc_hardware_description(&dev->id));
|
||||
|
||||
|
|
Loading…
Reference in a new issue