summaryrefslogtreecommitdiff
path: root/drivers/dahdi/wctdm24xxp/xhfc.c
diff options
context:
space:
mode:
authorShaun Ruffell <sruffell@digium.com>2010-11-04 16:41:02 +0000
committerShaun Ruffell <sruffell@digium.com>2010-11-04 16:41:02 +0000
commit02d844b70604210abb3991c062b3101fbff47da6 (patch)
tree9f38f665ed5ce2257d02980bc39865ae6cc8b794 /drivers/dahdi/wctdm24xxp/xhfc.c
parent2657232caf4da2ba09f47284b7a74a7a184bfb4d (diff)
wctdm24xxp: 'wait_just_a_bit()' -> 'msleep()'
If we're waiting for tens or hundreds of milliseconds we will just go to sleep instead of spinning. Signed-off-by: Shaun Ruffell <sruffell@digium.com> git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@9471 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'drivers/dahdi/wctdm24xxp/xhfc.c')
-rw-r--r--drivers/dahdi/wctdm24xxp/xhfc.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/dahdi/wctdm24xxp/xhfc.c b/drivers/dahdi/wctdm24xxp/xhfc.c
index 65cdfb7..b65245f 100644
--- a/drivers/dahdi/wctdm24xxp/xhfc.c
+++ b/drivers/dahdi/wctdm24xxp/xhfc.c
@@ -24,6 +24,7 @@
#include <linux/pci.h>
#include <linux/ppp_defs.h>
#include <linux/delay.h>
+#include <linux/sched.h>
#define FAST_HDLC_NEED_TABLES
#include <dahdi/kernel.h>
@@ -785,7 +786,7 @@ static void hfc_reset(struct b400m *b4)
b400m_setreg(b4, R_CIRM, V_SRES);
flush_hw();
- wait_just_a_bit(HZ/10);
+ msleep(100);
b400m_setreg(b4, R_CIRM, 0x00);
flush_hw();
@@ -2711,7 +2712,7 @@ void wctdm_unload_b400m(struct wctdm *wc, int card)
if (b4) {
b4->inited = 0;
- wait_just_a_bit(HZ/10);
+ msleep(100);
/* TODO: wait for tdm24xx driver to unregister the spans */
/* do { ... } while(not_unregistered); */