diff options
author | Shaun Ruffell <sruffell@digium.com> | 2010-09-24 22:44:53 +0000 |
---|---|---|
committer | Shaun Ruffell <sruffell@digium.com> | 2010-09-24 22:44:53 +0000 |
commit | 38f944fd9ccce0d29b33e6599165b2b8c6964d08 (patch) | |
tree | eaba3cdebac7179a46a49b0c58a5beb26962d894 /drivers/dahdi/xpp/mmapdrv.c | |
parent | 12cde3e200321dc88e979ba2cbe7c33cc154f161 (diff) |
Move test for DEFINE_SPINLOCK into include/dahdi/kernel.h
The check for DEFINE_SPINLOCK was spread throughout the source tree. If
not defined we can just define it in inlucde/dahdi/kernel.h. Now
include/dahdi/kernel.h is the only place that references
SPIN_LOCK_UNLOCKED (which breaks lockdep checking if DEFINE_SPINLOCK is
otherwise defined in the kernel).
Signed-off-by: Shaun Ruffell <sruffell@digium.com>
Acked-by: Kinsey Moore <kmoore@digium.com>
Acked-by: Russ Meyerriecks <rmeyerriecks@digium.com>
Acked-by: Tzafrir Cohen <tzafrir.cohen@xorcom.com>
Review: https://reviewboard.asterisk.org/r/940/
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@9411 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'drivers/dahdi/xpp/mmapdrv.c')
-rw-r--r-- | drivers/dahdi/xpp/mmapdrv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/dahdi/xpp/mmapdrv.c b/drivers/dahdi/xpp/mmapdrv.c index 6f38587..1ca3140 100644 --- a/drivers/dahdi/xpp/mmapdrv.c +++ b/drivers/dahdi/xpp/mmapdrv.c @@ -68,7 +68,7 @@ struct counter { static xbus_t *global_xbus; static bool tx_ready = 1; -static spinlock_t tx_ready_lock = SPIN_LOCK_UNLOCKED; +static DEFINE_SPINLOCK(tx_ready_lock); static struct xframe_queue txpool; static unsigned int pcm_in_pool_count; static bool disconnecting; |