diff options
author | mattf <mattf@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2007-05-16 23:04:46 +0000 |
---|---|---|
committer | mattf <mattf@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2007-05-16 23:04:46 +0000 |
commit | 334fb5ab7e1e4e17674216708fcaf3b512d3887b (patch) | |
tree | ecaf9f1455b13027c38a71bfd915d3cf4b909f5c | |
parent | 971503cd62ad21f70068ffa10477c21c76cb608b (diff) |
Make sure the leds aren't updating every framer interrupt
git-svn-id: http://svn.digium.com/svn/zaptel/trunk@2518 5390a7c7-147a-4af0-8ec9-7488f05a26cb
-rw-r--r-- | wct4xxp/base.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/wct4xxp/base.c b/wct4xxp/base.c index f9213df..b91239b 100644 --- a/wct4xxp/base.c +++ b/wct4xxp/base.c @@ -2887,6 +2887,11 @@ ZAP_IRQ_HANDLER(t4_interrupt_gen2) #else t4_prep_gen2(wc); #endif + t4_do_counters(wc); + spin_lock(&wc->reglock); + __handle_leds(wc); + spin_unlock(&wc->reglock); + } if (unlikely(status & 0x1)) { @@ -2917,12 +2922,8 @@ ZAP_IRQ_HANDLER(t4_interrupt_gen2) } } - t4_do_counters(wc); - spin_lock(&wc->reglock); - __handle_leds(wc); - if (unlikely(wc->checktiming > 0)) { __t4_set_timing_source_auto(wc); } |