From 334fb5ab7e1e4e17674216708fcaf3b512d3887b Mon Sep 17 00:00:00 2001 From: mattf Date: Wed, 16 May 2007 23:04:46 +0000 Subject: 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 --- wct4xxp/base.c | 9 +++++---- 1 file 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); } -- cgit v1.2.3