aboutsummaryrefslogtreecommitdiff
path: root/include/linux/rpmsg
diff options
context:
space:
mode:
authorBjorn Andersson2020-04-22 17:37:34 -0700
committerBjorn Andersson2020-05-07 11:04:18 -0700
commit5d1f2e3c8090c0769ee4a1b920e82277613327fc (patch)
tree43e1eb46291e6d8c240c4e7dbaf5e5da8efb7e43 /include/linux/rpmsg
parentcd9fc8f1b35bd75e0d33470a01baff2848a9443a (diff)
soc: qcom: glink_ssr: Internalize ssr_notifiers
Rather than carrying a special purpose blocking notifier for glink_ssr in remoteproc's qcom_common.c, move it into glink_ssr so allow wider reuse of the common one. The rpmsg glink header file is used in preparation for the next patch. Acked-by: Chris Lew <clew@codeaurora.org> Acked-by: Rishabh Bhatnagar <rishabhb@codeaurora.org> Link: https://lore.kernel.org/r/20200423003736.2027371-3-bjorn.andersson@linaro.org Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Diffstat (limited to 'include/linux/rpmsg')
-rw-r--r--include/linux/rpmsg/qcom_glink.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/rpmsg/qcom_glink.h b/include/linux/rpmsg/qcom_glink.h
index 96e26d94719f..09daa0acde2c 100644
--- a/include/linux/rpmsg/qcom_glink.h
+++ b/include/linux/rpmsg/qcom_glink.h
@@ -26,4 +26,10 @@ static inline void qcom_glink_smem_unregister(struct qcom_glink *glink) {}
#endif
+#if IS_ENABLED(CONFIG_RPMSG_QCOM_GLINK_SSR)
+void qcom_glink_ssr_notify(const char *ssr_name);
+#else
+static inline void qcom_glink_ssr_notify(const char *ssr_name) {}
+#endif
+
#endif