浏览代码

qcacmn: Add high priority ordered workqueue APIs

Add APIs to support creation of a high priority, ordered, unbound
workqueue.

Change-Id: Ib7e39a7ca3fcc9ee1ed8886ca62c312a3e3e46a2
CRs-Fixed: 2602029
Mohit Khanna 5 年之前
父节点
当前提交
e05c287f31
共有 2 个文件被更改,包括 26 次插入2 次删除
  1. 13 1
      qdf/inc/qdf_defer.h
  2. 13 1
      qdf/linux/src/i_qdf_defer.h

+ 13 - 1
qdf/inc/qdf_defer.h

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2014-2019 The Linux Foundation. All rights reserved.
+ * Copyright (c) 2014-2020 The Linux Foundation. All rights reserved.
  *
  * Permission to use, copy, modify, and/or distribute this software for
  * any purpose with or without fee is hereby granted, provided that the
@@ -126,6 +126,18 @@ static inline qdf_workqueue_t *qdf_create_singlethread_workqueue(char *name)
 	return  __qdf_create_singlethread_workqueue(name);
 }
 
+/**
+ * qdf_alloc_high_prior_ordered_workqueue - alloc high-prior ordered workqueue
+ * @name: string
+ *
+ * Return: pointer of type qdf_workqueue_t
+ */
+static inline
+qdf_workqueue_t *qdf_alloc_high_prior_ordered_workqueue(char *name)
+{
+	return __qdf_alloc_high_prior_ordered_workqueue(name);
+}
+
 /**
  * qdf_alloc_unbound_workqueue - allocate an unbound workqueue
  * @name: string

+ 13 - 1
qdf/linux/src/i_qdf_defer.h

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2014-2019 The Linux Foundation. All rights reserved.
+ * Copyright (c) 2014-2020 The Linux Foundation. All rights reserved.
  *
  * Permission to use, copy, modify, and/or distribute this software for
  * any purpose with or without fee is hereby granted, provided that the
@@ -136,6 +136,18 @@ static inline __qdf_workqueue_t *__qdf_create_singlethread_workqueue(char *name)
 	return create_singlethread_workqueue(name);
 }
 
+/**
+ * __qdf_alloc_high_prior_ordered_workqueue - alloc high-prior ordered workqueue
+ * @name: string
+ *
+ * Return: pointer of type qdf_workqueue_t
+ */
+static inline
+__qdf_workqueue_t *__qdf_alloc_high_prior_ordered_workqueue(char *name)
+{
+	return  alloc_ordered_workqueue(name, WQ_HIGHPRI);
+}
+
 /**
  * __qdf_alloc_unbound_workqueue - alloc an unbound workqueue
  * @name: string