|
@@ -1,6 +1,6 @@
|
|
/*
|
|
/*
|
|
* Copyright (c) 2014-2021 The Linux Foundation. All rights reserved.
|
|
* Copyright (c) 2014-2021 The Linux Foundation. All rights reserved.
|
|
- * Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
|
|
|
|
|
|
+ * Copyright (c) 2022,2024 Qualcomm Innovation Center, Inc. All rights reserved.
|
|
*
|
|
*
|
|
* Permission to use, copy, modify, and/or distribute this software for
|
|
* Permission to use, copy, modify, and/or distribute this software for
|
|
* any purpose with or without fee is hereby granted, provided that the
|
|
* any purpose with or without fee is hereby granted, provided that the
|
|
@@ -166,9 +166,9 @@ QDF_STATUS qdf_create_work(qdf_handle_t hdl, qdf_work_t *work,
|
|
* @hdl: OS handle
|
|
* @hdl: OS handle
|
|
* @work: pointer to work
|
|
* @work: pointer to work
|
|
*
|
|
*
|
|
- * Return: none
|
|
|
|
|
|
+ * Return: false if work was already on a queue, true otherwise
|
|
*/
|
|
*/
|
|
-void qdf_sched_work(qdf_handle_t hdl, qdf_work_t *work);
|
|
|
|
|
|
+bool qdf_sched_work(qdf_handle_t hdl, qdf_work_t *work);
|
|
|
|
|
|
/**
|
|
/**
|
|
* qdf_queue_work - Queue the work/task
|
|
* qdf_queue_work - Queue the work/task
|
|
@@ -379,11 +379,12 @@ static inline void qdf_destroy_workqueue(qdf_handle_t hdl,
|
|
* qdf_sched_work - Schedule a deferred task on non-interrupt context
|
|
* qdf_sched_work - Schedule a deferred task on non-interrupt context
|
|
* @hdl: OS handle
|
|
* @hdl: OS handle
|
|
* @work: pointer to work
|
|
* @work: pointer to work
|
|
- * Return: none
|
|
|
|
|
|
+ *
|
|
|
|
+ * Return: false if work was already on a queue, true otherwise
|
|
*/
|
|
*/
|
|
-static inline void qdf_sched_work(qdf_handle_t hdl, qdf_work_t *work)
|
|
|
|
|
|
+static inline bool qdf_sched_work(qdf_handle_t hdl, qdf_work_t *work)
|
|
{
|
|
{
|
|
- __qdf_sched_work(work);
|
|
|
|
|
|
+ return __qdf_sched_work(work);
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|