Skip to contentSkip to conversation

b43: Remove TX spinlock

PATCH In review Michael Buesch 1 participant 1 message Sep 4, 2009 Networking drivers (wireless)

lore
Share & tools
lore
#0 lore raw

PATCH 2/5 b43: Remove TX spinlock

This removes the TX spinlock and defers TX to a workqueue to allow locking wl->mutex instead and to allow sleeping for register accesses.

drivers/net/wireless/b43/b43.h +5 -0
Index: wireless-testing/drivers/net/wireless/b43/b43.h
===================================================================
@@ -683,6 +683,11 @@ struct b43_wl {
 	 * This is scheduled when we determine that the actual TX output
 	 * power doesn't match what we want. */
 	struct work_struct txpower_adjust_work;
+
+	/* Packet transmit work */
+	struct work_struct tx_work;
+	/* Queue of packets to be transmitted. */
+	struct sk_buff_head tx_queue;
 };
 
 /* The type of the firmware file. */
drivers/net/wireless/b43/main.c +38 -37

156 lines not on this page · raw message

Signature · 1 line
Greetings, Michael.