summaryrefslogtreecommitdiff
path: root/drivers/soc
diff options
context:
space:
mode:
authorKarthikeyan Ramasubramanian <kramasub@codeaurora.org>2016-01-14 18:14:11 -0700
committerDavid Keitel <dkeitel@codeaurora.org>2016-03-23 21:18:08 -0700
commit3eec48ca88a13c803b2ea1cd60b4fc85701e3f04 (patch)
treeaf3fbbf1aca5d9e024ba0c010bc89e060b93a84d /drivers/soc
parente125c08ab8d98481002345e4497192ab1145e280 (diff)
soc: qcom: ipc_router_glink_xprt: Queue receive intents appropriately
Currently IPC Router queues receive intents as soon as an intent request is received. Queue a receive intent only if the current pool of receive intents does not meet the request. CRs-Fixed: 938394 Change-Id: I6c7a471bf0ed4a4e42f4c42126477de5ee4056a7 Signed-off-by: Karthikeyan Ramasubramanian <kramasub@codeaurora.org>
Diffstat (limited to 'drivers/soc')
-rw-r--r--drivers/soc/qcom/ipc_router_glink_xprt.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/soc/qcom/ipc_router_glink_xprt.c b/drivers/soc/qcom/ipc_router_glink_xprt.c
index e88d005c7e73..ceac506001f9 100644
--- a/drivers/soc/qcom/ipc_router_glink_xprt.c
+++ b/drivers/soc/qcom/ipc_router_glink_xprt.c
@@ -1,4 +1,4 @@
-/* Copyright (c) 2014-2015, The Linux Foundation. All rights reserved.
+/* Copyright (c) 2014-2016, The Linux Foundation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
@@ -466,6 +466,9 @@ static bool glink_xprt_notify_rx_intent_req(void *handle, const void *priv,
struct ipc_router_glink_xprt *glink_xprtp =
(struct ipc_router_glink_xprt *)priv;
+ if (sz <= DEFAULT_RX_INTENT_SIZE)
+ return true;
+
qrx_intent_work = kmalloc(sizeof(struct queue_rx_intent_work),
GFP_KERNEL);
if (!qrx_intent_work) {