Kaynağa Gözat

qcacld-3.0: Remove obsolete CDS message queue init/deinit APIs

After control path scheduler componentization CDS message queue
init/deinit APIs are no longer used hence remove them.

Change-Id: I65c14872bf20412eb1014deac0172f2bfacc0f0f
CRs-Fixed: 1111033
Rajeev Kumar 8 yıl önce
ebeveyn
işleme
9fdfbe06ee
2 değiştirilmiş dosya ile 0 ekleme ve 47 silme
  1. 0 2
      core/cds/inc/cds_sched.h
  2. 0 45
      core/cds/src/cds_mq.c

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

@@ -478,8 +478,6 @@ QDF_STATUS cds_sched_open(void *p_cds_context,
 QDF_STATUS cds_sched_close(void *p_cds_context);
 
 /* Helper routines provided to other CDS API's */
-QDF_STATUS cds_mq_init(p_cds_mq_type pMq);
-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);

+ 0 - 45
core/cds/src/cds_mq.c

@@ -47,51 +47,6 @@
 
 tSirRetStatus u_mac_post_ctrl_msg(void *pSirGlobal, void *pMb);
 
-/**
- * cds_mq_init() - initialize cds message queue
- * @pMq: Pointer to the message queue
- *
- * This function initializes the Message queue.
- *
- * Return: qdf status
- */
-inline QDF_STATUS cds_mq_init(p_cds_mq_type pMq)
-{
-
-	if (pMq == NULL) {
-		QDF_TRACE(QDF_MODULE_ID_QDF, QDF_TRACE_LEVEL_ERROR,
-			  "%s: NULL pointer passed", __func__);
-		return QDF_STATUS_E_FAILURE;
-	}
-
-	/* Now initialize the lock */
-	spin_lock_init(&pMq->mqLock);
-
-	/* Now initialize the List data structure */
-	INIT_LIST_HEAD(&pMq->mqList);
-
-	return QDF_STATUS_SUCCESS;
-} /* cds_mq_init() */
-
-/**
- * cds_mq_deinit() - de-initialize cds message queue
- * @pMq: Pointer to the message queue
- *
- * This function de-initializes cds message queue
- *
- * Return: none
- */
-inline void cds_mq_deinit(p_cds_mq_type pMq)
-{
-	if (pMq == NULL) {
-		QDF_TRACE(QDF_MODULE_ID_QDF, QDF_TRACE_LEVEL_ERROR,
-			  "%s: NULL pointer passed", __func__);
-		return;
-	}
-
-	/* we don't have to do anything with the embedded list or spinlock */
-} /* cds_mq_deinit() */
-
 /**
  * cds_mq_put() - add a message to the message queue
  * @pMq: Pointer to the message queue