remoteproc: Use unbounded workqueue for recovery work
authorMukesh Ojha <quic_mojha@quicinc.com>
Tue, 19 Apr 2022 11:25:54 +0000 (16:55 +0530)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Mon, 18 Jul 2022 20:32:34 +0000 (15:32 -0500)
commitcab8300b5621a54aa25306ff800c27fa5a4632d7
treebda1fa4c0f519c3d7cce38dc3e0fd9cce449131c
parent60349fd52ecbb8b14545ff25aba2f2e230c4d618
remoteproc: Use unbounded workqueue for recovery work

There could be a scenario when there is too much load on a core
(n number of tasks which is affined) or in a case when multiple
rproc subsystem is going for recovery, they queue their recovery
work to one core so even though subsystem are independent their
recovery will be delayed if one of the subsystem recovery work
is taking more time in completing.

If we make this queue unbounded, the recovery work could be picked
on any cpu. This patch is trying to address this.

Signed-off-by: Mukesh Ojha <quic_mojha@quicinc.com>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/1650367554-15510-1-git-send-email-quic_mojha@quicinc.com
drivers/remoteproc/remoteproc_core.c