summaryrefslogtreecommitdiffstats
path: root/drivers/staging/wfx/queue.h
diff options
context:
space:
mode:
authorJérôme Pouiller <jerome.pouiller@silabs.com>2020-04-01 13:03:54 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-04-13 08:55:36 +0200
commit7ba22b075422bb761f1fc26ff6dcb05eabed6e63 (patch)
tree8ff88dc99998bbb2649581ca7b140b8f8d289144 /drivers/staging/wfx/queue.h
parentb6ef154973384439c663f8c5fde0eafa51e54309 (diff)
downloadlinux-7ba22b075422bb761f1fc26ff6dcb05eabed6e63.tar.bz2
staging: wfx: introduce a counter of pending frames
This counter will be useful to know which queue is least full in a further patch. Reviewed-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Jérôme Pouiller <jerome.pouiller@silabs.com> Link: https://lore.kernel.org/r/20200401110405.80282-22-Jerome.Pouiller@silabs.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/wfx/queue.h')
-rw-r--r--drivers/staging/wfx/queue.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/staging/wfx/queue.h b/drivers/staging/wfx/queue.h
index 2c4724699ed0..c24b8cd41a78 100644
--- a/drivers/staging/wfx/queue.h
+++ b/drivers/staging/wfx/queue.h
@@ -9,6 +9,7 @@
#define WFX_QUEUE_H
#include <linux/skbuff.h>
+#include <linux/atomic.h>
#include "hif_api_cmd.h"
@@ -20,6 +21,7 @@ struct wfx_vif;
struct wfx_queue {
struct sk_buff_head queue;
+ atomic_t pending_frames;
};
struct wfx_queue_stats {