From 8b7ede56279bbf1f47105c0cdc18741659290848 Mon Sep 17 00:00:00 2001 From: Shaun Ruffell Date: Thu, 4 Nov 2010 16:40:53 +0000 Subject: 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 git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@9469 a0bf4364-ded3-4de4-8d8a-66a801d63aff --- drivers/dahdi/wctdm24xxp/xhfc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'drivers/dahdi/wctdm24xxp/xhfc.c') 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); -- cgit v1.2.3