From 3eec48ca88a13c803b2ea1cd60b4fc85701e3f04 Mon Sep 17 00:00:00 2001 From: Karthikeyan Ramasubramanian Date: Thu, 14 Jan 2016 18:14:11 -0700 Subject: [PATCH] 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 --- drivers/soc/qcom/ipc_router_glink_xprt.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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) {