diff options
author | Shaun Ruffell <sruffell@digium.com> | 2010-11-04 16:40:53 +0000 |
---|---|---|
committer | Shaun Ruffell <sruffell@digium.com> | 2010-11-04 16:40:53 +0000 |
commit | 8b7ede56279bbf1f47105c0cdc18741659290848 (patch) | |
tree | e8f11075d120a0e77f312cca98a515dab4d6050b /drivers/dahdi/wctdm24xxp/xhfc.c | |
parent | d265ee1dbebb904c51c0a7f519b1bfca40e47e9d (diff) |
wctdm24xxp: Replace 'schluffen()' with 'interruptible_sleep_on()'
'schluffen()' essentially duplicates the functionality of the standard
Linux 'interruptible_sleep_on()' function.
There may still be some race conditions that can be closed here, but
most of the command queue processing is sloted for conversion to
something more like in the single span driver in order to reduce the
time in interrupt context spent scanning for commands to the modules.
Signed-off-by: Shaun Ruffell <sruffell@digium.com>
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@9469 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'drivers/dahdi/wctdm24xxp/xhfc.c')
-rw-r--r-- | drivers/dahdi/wctdm24xxp/xhfc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/dahdi/wctdm24xxp/xhfc.c b/drivers/dahdi/wctdm24xxp/xhfc.c index ee227e0..65cdfb7 100644 --- a/drivers/dahdi/wctdm24xxp/xhfc.c +++ b/drivers/dahdi/wctdm24xxp/xhfc.c @@ -2641,7 +2641,7 @@ int wctdm_init_b400m(struct wctdm *wc, int card) spin_unlock_irqrestore(&wc->reglock, flags); for (i = 0; i < 10; i++) - schluffen(&wc->regq); + interruptible_sleep_on(&wc->regq); if (b400m_probe(wc, card) != 0) { spin_lock_irqsave(&wc->reglock, flags); |