diff options
author | mattf <mattf@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2008-05-02 19:43:44 +0000 |
---|---|---|
committer | mattf <mattf@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2008-05-02 19:43:44 +0000 |
commit | 8765a9d25403c31ca0422140f7b0a16633fc6ea6 (patch) | |
tree | 39ff3590d2388b4e323c97f5d9f87f326b5f958f /kernel/wct4xxp/base.c | |
parent | f698d587cf89dc0f6b07a10c9f7693a451624334 (diff) |
Remove old schedule_timout code and replace with an msleep
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4230 5390a7c7-147a-4af0-8ec9-7488f05a26cb
Diffstat (limited to 'kernel/wct4xxp/base.c')
-rw-r--r-- | kernel/wct4xxp/base.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/wct4xxp/base.c b/kernel/wct4xxp/base.c index ec956c4..5e43601 100644 --- a/kernel/wct4xxp/base.c +++ b/kernel/wct4xxp/base.c @@ -3740,8 +3740,8 @@ static int t4_hardware_stop(struct t4 *wc) /* Turn off DMA, leave interrupts enabled */ set_bit(T4_STOP_DMA, &wc->checkflag); - current->state = TASK_UNINTERRUPTIBLE; - schedule_timeout((25 * HZ) / 1000); + /* Wait for interrupts to stop */ + msleep(25); /* Turn off counter, address, etc */ if (wc->tspans[0]->spanflags & FLAG_2NDGEN) { |