summaryrefslogtreecommitdiff
path: root/include/soc/qcom
diff options
context:
space:
mode:
authorPuja Gupta <pujag@codeaurora.org>2016-11-16 17:14:51 -0800
committerPuja Gupta <pujag@codeaurora.org>2016-11-30 14:46:59 -0800
commitffa980caab6f002bf7e6ec2c0eb99a19aaba1793 (patch)
treeb6777dcab86afa3f6f0ad4cbfcea5d8e197dbf82 /include/soc/qcom
parent9aa1df0cf5ffb58b52b55b4fe2ea6531f795e186 (diff)
soc: qcom: Add support to restart user PD
Introduce api service_notif_pd_restart() using which clients can request to restart user PD. CRs-Fixed: 1092791 Change-Id: Ic21de510cde4bfa9f2e4f7f3d4518b464be88db2 Signed-off-by: Puja Gupta <pujag@codeaurora.org>
Diffstat (limited to 'include/soc/qcom')
-rw-r--r--include/soc/qcom/service-notifier.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/include/soc/qcom/service-notifier.h b/include/soc/qcom/service-notifier.h
index eae879786d59..0106801fc173 100644
--- a/include/soc/qcom/service-notifier.h
+++ b/include/soc/qcom/service-notifier.h
@@ -52,21 +52,29 @@ void *service_notif_register_notifier(const char *service_path, int instance_id,
int service_notif_unregister_notifier(void *service_notif_handle,
struct notifier_block *nb);
+int service_notif_pd_restart(const char *service_path, int instance_id);
+
#else
-static void *service_notif_register_notifier(const char *service_path,
+static inline void *service_notif_register_notifier(const char *service_path,
int instance_id, struct notifier_block *nb,
int *curr_state)
{
return ERR_PTR(-ENODEV);
}
-static int service_notif_unregister_notifier(void *service_notif_handle,
+static inline int service_notif_unregister_notifier(void *service_notif_handle,
struct notifier_block *nb)
{
return -ENODEV;
}
+static inline int service_notif_pd_restart(const char *service_path,
+ int instance_id)
+{
+ return -ENODEV;
+}
+
#endif /* CONFIG_MSM_SERVICE_NOTIFIER */
#endif