summaryrefslogtreecommitdiff
path: root/drivers/dahdi/xpp/xbus-core.h
diff options
context:
space:
mode:
authorTzafrir Cohen <tzafrir.cohen@xorcom.com>2010-07-13 09:42:45 +0000
committerTzafrir Cohen <tzafrir.cohen@xorcom.com>2010-07-13 09:42:45 +0000
commitd6035ac6ad1c10d867c57cd53e074fa521a537b0 (patch)
tree9af22ba8a433532636b3d6c7936f26fbed9ddab1 /drivers/dahdi/xpp/xbus-core.h
parent330259c92d09fba56efca9d5be4cd2b237645725 (diff)
put xbus->worker in xbus; wake_up_interruptible_all()
* The worker member of 'struct xbus' is now an embedded struct xbus_workqueue. * Replace wake_up() to wake_up_interruptible_all(). git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@8882 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'drivers/dahdi/xpp/xbus-core.h')
-rw-r--r--drivers/dahdi/xpp/xbus-core.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/dahdi/xpp/xbus-core.h b/drivers/dahdi/xpp/xbus-core.h
index 71be6bf..259f87a 100644
--- a/drivers/dahdi/xpp/xbus-core.h
+++ b/drivers/dahdi/xpp/xbus-core.h
@@ -127,7 +127,6 @@ void transportops_put(xbus_t *xbus);
* Encapsulate all poll related data of a single xbus.
*/
struct xbus_workqueue {
- xbus_t *xbus;
struct workqueue_struct *wq;
struct work_struct xpds_init_work;
bool xpds_init_done;
@@ -141,6 +140,7 @@ struct xbus_workqueue {
#endif
#endif
spinlock_t worker_lock;
+ struct semaphore running_initialization;
};
/*
@@ -224,8 +224,7 @@ struct xbus {
int sample_pos;
#endif
- struct xbus_workqueue *worker;
- struct semaphore in_worker;
+ struct xbus_workqueue worker;
/*
* Sync adjustment