qcacmn: Define API qdf_create_singlethread_workqueue

Define API qdf_create_singlethread_workqueue to create a single
threaded dedicated work queue.

Change-Id: Iab70044888911c1e4adba63e8eee643d5693d716
CRs-Fixed: 2026443
此提交包含在:
Rajeev Kumar
2017-03-29 18:09:58 -07:00
提交者 snandini
父節點 b79fb55f0e
當前提交 452e744883
共有 2 個檔案被更改,包括 31 行新增1 行删除

查看文件

@@ -140,6 +140,21 @@ static inline qdf_workqueue_t *qdf_create_workqueue(char *name)
return __qdf_create_workqueue(name);
}
/**
* qdf_create_singlethread_workqueue() - create a single threaded workqueue
* @name: string
*
* This API creates a dedicated work queue with a single worker thread to avoid
* wasting unnecessary resources when works which needs to be submitted in this
* queue are not very critical and frequent.
*
* Return: pointer of type qdf_workqueue_t
*/
static inline qdf_workqueue_t *qdf_create_singlethread_workqueue(char *name)
{
return __qdf_create_singlethread_workqueue(name);
}
/**
* qdf_queue_work - Queue the work/task
* @hdl: OS handle