diff options
author | Bjorn Andersson <bjorn.andersson@linaro.org> | 2017-07-25 08:56:43 +0300 |
---|---|---|
committer | Bjorn Andersson <bjorn.andersson@linaro.org> | 2017-08-02 22:43:20 +0300 |
commit | 1e140df0496541c473e5d40b0da5d2d626b2e343 (patch) | |
tree | d872019d45a5a7da0c9a9478fd6e30ec011328cb /include/linux/remoteproc | |
parent | 1b0ef9068f053d8057b5ebe3cbff692b071bdf73 (diff) | |
download | linux-1e140df0496541c473e5d40b0da5d2d626b2e343.tar.xz |
remoteproc: qcom: Add support for SSR notifications
This adds the remoteproc part of subsystem restart, which is responsible
for emitting notifications to other processors in the system about a
dying remoteproc instance.
These notifications are propagated to the various communication systems
in the various remote processors to shut down communication links that
was left in a dangling state as the remoteproc was stopped (or crashed).
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Diffstat (limited to 'include/linux/remoteproc')
-rw-r--r-- | include/linux/remoteproc/qcom_rproc.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/include/linux/remoteproc/qcom_rproc.h b/include/linux/remoteproc/qcom_rproc.h new file mode 100644 index 000000000000..fa8e38681b4b --- /dev/null +++ b/include/linux/remoteproc/qcom_rproc.h @@ -0,0 +1,22 @@ +#ifndef __QCOM_RPROC_H__ +#define __QCOM_RPROC_H__ + +struct notifier_block; + +#if IS_ENABLED(CONFIG_QCOM_RPROC_COMMON) + +int qcom_register_ssr_notifier(struct notifier_block *nb); +void qcom_unregister_ssr_notifier(struct notifier_block *nb); + +#else + +static inline int qcom_register_ssr_notifier(struct notifier_block *nb) +{ + return 0; +} + +static inline void qcom_unregister_ssr_notifier(struct notifier_block *nb) {} + +#endif + +#endif |