Pārlūkot izejas kodu

qcacld-3.0: Remove obsolete cds_is_mq_empty API

After control path scheduler componentization cds_is_mq_empty
API is no longer used hence remove it.

Change-Id: I6b90d185d4faad7a02fca1b784dfea9b08213005
CRs-Fixed: 1106123
Rajeev Kumar 8 gadi atpakaļ
vecāks
revīzija
52333410ab
2 mainītis faili ar 2 papildinājumiem un 28 dzēšanām
  1. 1 2
      core/cds/inc/cds_sched.h
  2. 1 26
      core/cds/src/cds_mq.c

+ 1 - 2
core/cds/inc/cds_sched.h

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2012-2016 The Linux Foundation. All rights reserved.
+ * Copyright (c) 2012-2017 The Linux Foundation. All rights reserved.
  *
  * Previously licensed under the ISC license by Qualcomm Atheros, Inc.
  *
@@ -503,7 +503,6 @@ void cds_mq_deinit(p_cds_mq_type pMq);
 void cds_mq_put(p_cds_mq_type pMq, p_cds_msg_wrapper pMsgWrapper);
 void cds_mq_put_front(p_cds_mq_type mq, p_cds_msg_wrapper msg_wrapper);
 p_cds_msg_wrapper cds_mq_get(p_cds_mq_type pMq);
-bool cds_is_mq_empty(p_cds_mq_type pMq);
 p_cds_sched_context get_cds_sched_ctxt(void);
 QDF_STATUS cds_sched_init_mqs(p_cds_sched_context pSchedContext);
 void cds_sched_deinit_mqs(p_cds_sched_context pSchedContext);

+ 1 - 26
core/cds/src/cds_mq.c

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2014-2016 The Linux Foundation. All rights reserved.
+ * Copyright (c) 2014-2017 The Linux Foundation. All rights reserved.
  *
  * Previously licensed under the ISC license by Qualcomm Atheros, Inc.
  *
@@ -179,31 +179,6 @@ inline p_cds_msg_wrapper cds_mq_get(p_cds_mq_type pMq)
 
 } /* cds_mq_get() */
 
-/**
- * cds_is_mq_empty() - check if the message queue is empty
- * @pMq: Pointer to the message queue
- *
- * Return: true if message queue is emtpy
- *	   false otherwise
- */
-inline bool cds_is_mq_empty(p_cds_mq_type pMq)
-{
-	bool state = false;
-	unsigned long flags;
-
-	if (pMq == NULL) {
-		QDF_TRACE(QDF_MODULE_ID_QDF, QDF_TRACE_LEVEL_ERROR,
-			  "%s: NULL pointer passed", __func__);
-		return QDF_STATUS_E_FAILURE;
-	}
-
-	spin_lock_irqsave(&pMq->mqLock, flags);
-	state = list_empty(&pMq->mqList) ? true : false;
-	spin_unlock_irqrestore(&pMq->mqLock, flags);
-
-	return state;
-} /* cds_mq_get() */
-
 /**
  * cds_send_mb_message_to_mac() - post a message to a message queue
  * @pBuf: Pointer to buffer allocated by caller