mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
remoteproc: Remove depricated crash completion
The crash handling now happens in a single execution context, so there's no longer a need for a completion to synchronize this. Reviewed-By: Loic Pallardy <[email protected]> Tested-By: Loic Pallardy <[email protected]> Signed-off-by: Bjorn Andersson <[email protected]>
This commit is contained in:
parent
900a163ede
commit
b26210cda6
2 changed files with 0 additions and 12 deletions
|
|
@ -1028,10 +1028,6 @@ static int rproc_stop(struct rproc *rproc)
|
|||
return ret;
|
||||
}
|
||||
|
||||
/* if in crash state, unlock crash handler */
|
||||
if (rproc->state == RPROC_CRASHED)
|
||||
complete_all(&rproc->crash_comp);
|
||||
|
||||
rproc->state = RPROC_OFFLINE;
|
||||
|
||||
dev_info(dev, "stopped remote processor %s\n", rproc->name);
|
||||
|
|
@ -1057,8 +1053,6 @@ int rproc_trigger_recovery(struct rproc *rproc)
|
|||
|
||||
dev_err(dev, "recovering %s\n", rproc->name);
|
||||
|
||||
init_completion(&rproc->crash_comp);
|
||||
|
||||
ret = mutex_lock_interruptible(&rproc->lock);
|
||||
if (ret)
|
||||
return ret;
|
||||
|
|
@ -1067,9 +1061,6 @@ int rproc_trigger_recovery(struct rproc *rproc)
|
|||
if (ret)
|
||||
goto unlock_mutex;
|
||||
|
||||
/* wait until there is no more rproc users */
|
||||
wait_for_completion(&rproc->crash_comp);
|
||||
|
||||
/* load firmware */
|
||||
ret = request_firmware(&firmware_p, rproc->firmware, dev);
|
||||
if (ret < 0) {
|
||||
|
|
@ -1459,7 +1450,6 @@ struct rproc *rproc_alloc(struct device *dev, const char *name,
|
|||
INIT_LIST_HEAD(&rproc->subdevs);
|
||||
|
||||
INIT_WORK(&rproc->crash_handler, rproc_crash_handler_work);
|
||||
init_completion(&rproc->crash_comp);
|
||||
|
||||
rproc->state = RPROC_OFFLINE;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue