diff options
author | Shaun Ruffell <sruffell@digium.com> | 2011-01-03 18:25:45 +0000 |
---|---|---|
committer | Shaun Ruffell <sruffell@digium.com> | 2011-01-03 18:25:45 +0000 |
commit | b300aa6c7fa62187e0147471c9086dce2d041d57 (patch) | |
tree | d129729adbd5bf215a632b7fc981833e0735f7ea /drivers/dahdi/dahdi-base.c | |
parent | 5044c4075801512d44ee81d3525b50bbad16688c (diff) |
dahdi_dynamic: Use dahdi_span_ops.sync_tick for driving dynamic spans.
Dynamic spans that are unable to provide their own timing, like dahdi
local spans, typically derived their timing source from
dahdi_dynamic_ioctl(0,0) call in process_masterspan.
This change uses the sync_tick member of dahdi_span_ops instead so that
dynamic operations do not happen on a span until it is fully registered.
Also removes the check for dahdi_dynamic_ioctl in process masterspan for
those users that never load a dynamic span.
This was originally suggested in a comment on:
(issue #13205)
Signed-off-by: Shaun Ruffell <sruffell@digium.com>
Acked-by: Kinsey Moore <kmoore@digium.com>
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@9576 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'drivers/dahdi/dahdi-base.c')
-rw-r--r-- | drivers/dahdi/dahdi-base.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/dahdi/dahdi-base.c b/drivers/dahdi/dahdi-base.c index 8b690c8..9d60f1c 100644 --- a/drivers/dahdi/dahdi-base.c +++ b/drivers/dahdi/dahdi-base.c @@ -8458,10 +8458,6 @@ static void process_masterspan(void) /* Process any timers */ process_timers(); - /* If we have dynamic stuff, call the ioctl with 0,0 parameters to - make it run */ - if (dahdi_dynamic_ioctl) - dahdi_dynamic_ioctl(0, 0); for (y = 1; y < maxspans; ++y) { s = spans[y]; |