aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/libertas/debugfs.c
diff options
context:
space:
mode:
authorDan Williams <dcbw@redhat.com>2007-08-02 11:32:25 -0400
committerDavid S. Miller <davem@sunset.davemloft.net>2007-10-10 19:49:44 -0400
commitfe3361507af44d00d5b42b91c1626321765a11bc (patch)
treedb61afba5378e70a387465f4425e29f766e644ed /drivers/net/wireless/libertas/debugfs.c
parent2ca10e6d6a3052e7a8380b20588a7b1985ea1197 (diff)
[PATCH] libertas: remove thread.h and make kthread usage clearer
Remove the thread.h abstractions and opencode kthread stuff to make it clearer. Signed-off-by: Dan Williams <dcbw@redhat.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/libertas/debugfs.c')
-rw-r--r--drivers/net/wireless/libertas/debugfs.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/drivers/net/wireless/libertas/debugfs.c b/drivers/net/wireless/libertas/debugfs.c
index a206f49f810c..9439005db4e6 100644
--- a/drivers/net/wireless/libertas/debugfs.c
+++ b/drivers/net/wireless/libertas/debugfs.c
@@ -432,7 +432,7 @@ static ssize_t libertas_lowrssi_read(struct file *file, char __user *userbuf,
432 event->action = cpu_to_le16(CMD_ACT_GET); 432 event->action = cpu_to_le16(CMD_ACT_GET);
433 pcmdptr->size = cpu_to_le16(sizeof(*event) + S_DS_GEN); 433 pcmdptr->size = cpu_to_le16(sizeof(*event) + S_DS_GEN);
434 libertas_queue_cmd(adapter, pcmdnode, 1); 434 libertas_queue_cmd(adapter, pcmdnode, 1);
435 wake_up_interruptible(&priv->mainthread.waitq); 435 wake_up_interruptible(&priv->waitq);
436 436
437 /* Sleep until response is generated by FW */ 437 /* Sleep until response is generated by FW */
438 wait_event_interruptible(pcmdnode->cmdwait_q, 438 wait_event_interruptible(pcmdnode->cmdwait_q,
@@ -496,7 +496,7 @@ static u16 libertas_get_events_bitmap(wlan_private *priv)
496 event->action = cpu_to_le16(CMD_ACT_GET); 496 event->action = cpu_to_le16(CMD_ACT_GET);
497 pcmdptr->size = cpu_to_le16(sizeof(*event) + S_DS_GEN); 497 pcmdptr->size = cpu_to_le16(sizeof(*event) + S_DS_GEN);
498 libertas_queue_cmd(adapter, pcmdnode, 1); 498 libertas_queue_cmd(adapter, pcmdnode, 1);
499 wake_up_interruptible(&priv->mainthread.waitq); 499 wake_up_interruptible(&priv->waitq);
500 500
501 /* Sleep until response is generated by FW */ 501 /* Sleep until response is generated by FW */
502 wait_event_interruptible(pcmdnode->cmdwait_q, 502 wait_event_interruptible(pcmdnode->cmdwait_q,
@@ -575,7 +575,7 @@ static ssize_t libertas_lowrssi_write(struct file *file,
575 event->events = cpu_to_le16(event_bitmap); 575 event->events = cpu_to_le16(event_bitmap);
576 576
577 libertas_queue_cmd(adapter, pcmdnode, 1); 577 libertas_queue_cmd(adapter, pcmdnode, 1);
578 wake_up_interruptible(&priv->mainthread.waitq); 578 wake_up_interruptible(&priv->waitq);
579 579
580 /* Sleep until response is generated by FW */ 580 /* Sleep until response is generated by FW */
581 wait_event_interruptible(pcmdnode->cmdwait_q, 581 wait_event_interruptible(pcmdnode->cmdwait_q,
@@ -628,7 +628,7 @@ static ssize_t libertas_lowsnr_read(struct file *file, char __user *userbuf,
628 event->action = cpu_to_le16(CMD_ACT_GET); 628 event->action = cpu_to_le16(CMD_ACT_GET);
629 pcmdptr->size = cpu_to_le16(sizeof(*event) + S_DS_GEN); 629 pcmdptr->size = cpu_to_le16(sizeof(*event) + S_DS_GEN);
630 libertas_queue_cmd(adapter, pcmdnode, 1); 630 libertas_queue_cmd(adapter, pcmdnode, 1);
631 wake_up_interruptible(&priv->mainthread.waitq); 631 wake_up_interruptible(&priv->waitq);
632 632
633 /* Sleep until response is generated by FW */ 633 /* Sleep until response is generated by FW */
634 wait_event_interruptible(pcmdnode->cmdwait_q, 634 wait_event_interruptible(pcmdnode->cmdwait_q,
@@ -727,7 +727,7 @@ static ssize_t libertas_lowsnr_write(struct file *file,
727 event->events = cpu_to_le16(event_bitmap); 727 event->events = cpu_to_le16(event_bitmap);
728 728
729 libertas_queue_cmd(adapter, pcmdnode, 1); 729 libertas_queue_cmd(adapter, pcmdnode, 1);
730 wake_up_interruptible(&priv->mainthread.waitq); 730 wake_up_interruptible(&priv->waitq);
731 731
732 /* Sleep until response is generated by FW */ 732 /* Sleep until response is generated by FW */
733 wait_event_interruptible(pcmdnode->cmdwait_q, 733 wait_event_interruptible(pcmdnode->cmdwait_q,
@@ -781,7 +781,7 @@ static ssize_t libertas_failcount_read(struct file *file, char __user *userbuf,
781 event->action = cpu_to_le16(CMD_ACT_GET); 781 event->action = cpu_to_le16(CMD_ACT_GET);
782 pcmdptr->size = cpu_to_le16(sizeof(*event) + S_DS_GEN); 782 pcmdptr->size = cpu_to_le16(sizeof(*event) + S_DS_GEN);
783 libertas_queue_cmd(adapter, pcmdnode, 1); 783 libertas_queue_cmd(adapter, pcmdnode, 1);
784 wake_up_interruptible(&priv->mainthread.waitq); 784 wake_up_interruptible(&priv->waitq);
785 785
786 /* Sleep until response is generated by FW */ 786 /* Sleep until response is generated by FW */
787 wait_event_interruptible(pcmdnode->cmdwait_q, 787 wait_event_interruptible(pcmdnode->cmdwait_q,
@@ -879,7 +879,7 @@ static ssize_t libertas_failcount_write(struct file *file,
879 event->events = cpu_to_le16(event_bitmap); 879 event->events = cpu_to_le16(event_bitmap);
880 880
881 libertas_queue_cmd(adapter, pcmdnode, 1); 881 libertas_queue_cmd(adapter, pcmdnode, 1);
882 wake_up_interruptible(&priv->mainthread.waitq); 882 wake_up_interruptible(&priv->waitq);
883 883
884 /* Sleep until response is generated by FW */ 884 /* Sleep until response is generated by FW */
885 wait_event_interruptible(pcmdnode->cmdwait_q, 885 wait_event_interruptible(pcmdnode->cmdwait_q,
@@ -932,7 +932,7 @@ static ssize_t libertas_bcnmiss_read(struct file *file, char __user *userbuf,
932 event->action = cpu_to_le16(CMD_ACT_GET); 932 event->action = cpu_to_le16(CMD_ACT_GET);
933 pcmdptr->size = cpu_to_le16(sizeof(*event) + S_DS_GEN); 933 pcmdptr->size = cpu_to_le16(sizeof(*event) + S_DS_GEN);
934 libertas_queue_cmd(adapter, pcmdnode, 1); 934 libertas_queue_cmd(adapter, pcmdnode, 1);
935 wake_up_interruptible(&priv->mainthread.waitq); 935 wake_up_interruptible(&priv->waitq);
936 936
937 /* Sleep until response is generated by FW */ 937 /* Sleep until response is generated by FW */
938 wait_event_interruptible(pcmdnode->cmdwait_q, 938 wait_event_interruptible(pcmdnode->cmdwait_q,
@@ -1029,7 +1029,7 @@ static ssize_t libertas_bcnmiss_write(struct file *file,
1029 event->events = cpu_to_le16(event_bitmap); 1029 event->events = cpu_to_le16(event_bitmap);
1030 1030
1031 libertas_queue_cmd(adapter, pcmdnode, 1); 1031 libertas_queue_cmd(adapter, pcmdnode, 1);
1032 wake_up_interruptible(&priv->mainthread.waitq); 1032 wake_up_interruptible(&priv->waitq);
1033 1033
1034 /* Sleep until response is generated by FW */ 1034 /* Sleep until response is generated by FW */
1035 wait_event_interruptible(pcmdnode->cmdwait_q, 1035 wait_event_interruptible(pcmdnode->cmdwait_q,
@@ -1082,7 +1082,7 @@ static ssize_t libertas_highrssi_read(struct file *file, char __user *userbuf,
1082 event->action = cpu_to_le16(CMD_ACT_GET); 1082 event->action = cpu_to_le16(CMD_ACT_GET);
1083 pcmdptr->size = cpu_to_le16(sizeof(*event) + S_DS_GEN); 1083 pcmdptr->size = cpu_to_le16(sizeof(*event) + S_DS_GEN);
1084 libertas_queue_cmd(adapter, pcmdnode, 1); 1084 libertas_queue_cmd(adapter, pcmdnode, 1);
1085 wake_up_interruptible(&priv->mainthread.waitq); 1085 wake_up_interruptible(&priv->waitq);
1086 1086
1087 /* Sleep until response is generated by FW */ 1087 /* Sleep until response is generated by FW */
1088 wait_event_interruptible(pcmdnode->cmdwait_q, 1088 wait_event_interruptible(pcmdnode->cmdwait_q,
@@ -1181,7 +1181,7 @@ static ssize_t libertas_highrssi_write(struct file *file,
1181 event->events = cpu_to_le16(event_bitmap); 1181 event->events = cpu_to_le16(event_bitmap);
1182 1182
1183 libertas_queue_cmd(adapter, pcmdnode, 1); 1183 libertas_queue_cmd(adapter, pcmdnode, 1);
1184 wake_up_interruptible(&priv->mainthread.waitq); 1184 wake_up_interruptible(&priv->waitq);
1185 1185
1186 /* Sleep until response is generated by FW */ 1186 /* Sleep until response is generated by FW */
1187 wait_event_interruptible(pcmdnode->cmdwait_q, 1187 wait_event_interruptible(pcmdnode->cmdwait_q,
@@ -1232,7 +1232,7 @@ static ssize_t libertas_highsnr_read(struct file *file, char __user *userbuf,
1232 event->action = cpu_to_le16(CMD_ACT_GET); 1232 event->action = cpu_to_le16(CMD_ACT_GET);
1233 pcmdptr->size = cpu_to_le16(sizeof(*event) + S_DS_GEN); 1233 pcmdptr->size = cpu_to_le16(sizeof(*event) + S_DS_GEN);
1234 libertas_queue_cmd(adapter, pcmdnode, 1); 1234 libertas_queue_cmd(adapter, pcmdnode, 1);
1235 wake_up_interruptible(&priv->mainthread.waitq); 1235 wake_up_interruptible(&priv->waitq);
1236 1236
1237 /* Sleep until response is generated by FW */ 1237 /* Sleep until response is generated by FW */
1238 wait_event_interruptible(pcmdnode->cmdwait_q, 1238 wait_event_interruptible(pcmdnode->cmdwait_q,
@@ -1331,7 +1331,7 @@ static ssize_t libertas_highsnr_write(struct file *file,
1331 event->events = cpu_to_le16(event_bitmap); 1331 event->events = cpu_to_le16(event_bitmap);
1332 1332
1333 libertas_queue_cmd(adapter, pcmdnode, 1); 1333 libertas_queue_cmd(adapter, pcmdnode, 1);
1334 wake_up_interruptible(&priv->mainthread.waitq); 1334 wake_up_interruptible(&priv->waitq);
1335 1335
1336 /* Sleep until response is generated by FW */ 1336 /* Sleep until response is generated by FW */
1337 wait_event_interruptible(pcmdnode->cmdwait_q, 1337 wait_event_interruptible(pcmdnode->cmdwait_q,