summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVikram Panduranga <vpandura@codeaurora.org>2017-02-22 11:40:53 -0800
committerVikram Panduranga <vpandura@codeaurora.org>2017-02-22 12:16:02 -0800
commit43d4e6ad30f9d14de3099a1aa8a2bb131bea3b10 (patch)
treee4a6d471f5fa42c5485a95f572a0c945a7e48756
parentd72462d943ee499ac17a485bdacca60c0db31c04 (diff)
drivers: soc: apr: add wake_up for a waitqueue
APR client waits in a waitqueue for glink to queue intents. On receiving notification about availability of intent, wake_up should be called on the waitqueue to wake up any waiting APR client. CRs-Fixed: 1096481 Change-Id: I5a2b902fa831709092be1a9a3073b8d784adba81 Signed-off-by: Vikram Panduranga <vpandura@codeaurora.org>
-rw-r--r--drivers/soc/qcom/qdsp6v2/apr_tal_glink.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/soc/qcom/qdsp6v2/apr_tal_glink.c b/drivers/soc/qcom/qdsp6v2/apr_tal_glink.c
index 19974b61ec1c..d11ffdde23be 100644
--- a/drivers/soc/qcom/qdsp6v2/apr_tal_glink.c
+++ b/drivers/soc/qcom/qdsp6v2/apr_tal_glink.c
@@ -218,6 +218,7 @@ static void apr_tal_notify_remote_rx_intent(void *handle, const void *priv,
*/
pr_debug("%s: remote queued an intent\n", __func__);
apr_ch->if_remote_intent_ready = true;
+ wake_up(&apr_ch->wait);
}
void apr_tal_notify_state(void *handle, const void *priv, unsigned event)