Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(573)

Unified Diff: drivers/net/usb/gobi/structs.h

Issue 6913008: CHROMIUM: gobi: Remove worker.exit hack. (Closed) Base URL: ssh://gitrw.chromium.org:9222/kernel.git@0.12.433.B
Patch Set: Created 9 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « drivers/net/usb/gobi/qcusbnet.c ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: drivers/net/usb/gobi/structs.h
diff --git a/drivers/net/usb/gobi/structs.h b/drivers/net/usb/gobi/structs.h
index e6b4c635b35466cdb7f8132ae6ed58db22e7f22c..4c8c23e09a1d4982d55faaa04b8ca7362ed82203 100644
--- a/drivers/net/usb/gobi/structs.h
+++ b/drivers/net/usb/gobi/structs.h
@@ -27,6 +27,7 @@
#include <linux/cdev.h>
#include <linux/kobject.h>
#include <linux/kthread.h>
+#include <linux/wait.h>
#include <linux/usb/usbnet.h>
@@ -49,8 +50,8 @@ struct urbreq {
struct worker {
struct task_struct *thread;
- int exit;
- struct completion work;
+ atomic_t work_count;
+ wait_queue_head_t waitq;
struct list_head urbs;
spinlock_t urbs_lock;
struct urb *active;
« no previous file with comments | « drivers/net/usb/gobi/qcusbnet.c ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698