diff --git a/qdf/inc/qdf_defer.h b/qdf/inc/qdf_defer.h index 5a78b61acb..c73f0b98ac 100644 --- a/qdf/inc/qdf_defer.h +++ b/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 diff --git a/qdf/linux/src/i_qdf_defer.h b/qdf/linux/src/i_qdf_defer.h index 79dd17713b..f809ada914 100644 --- a/qdf/linux/src/i_qdf_defer.h +++ b/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