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>
This commit is contained in:
Karthikeyan Ramasubramanian 2016-01-14 18:14:11 -07:00 committed by David Keitel
parent e125c08ab8
commit 3eec48ca88

View file

@ -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) {