[svn-commits] mattf: trunk r2518 - /trunk/wct4xxp/base.c

svn-commits at lists.digium.com svn-commits at lists.digium.com
Wed May 16 16:04:46 MST 2007


Author: mattf
Date: Wed May 16 18:04:46 2007
New Revision: 2518

URL: http://svn.digium.com/view/zaptel?view=rev&rev=2518
Log:
Make sure the leds aren't updating every framer interrupt

Modified:
    trunk/wct4xxp/base.c

Modified: trunk/wct4xxp/base.c
URL: http://svn.digium.com/view/zaptel/trunk/wct4xxp/base.c?view=diff&rev=2518&r1=2517&r2=2518
==============================================================================
--- trunk/wct4xxp/base.c (original)
+++ trunk/wct4xxp/base.c Wed May 16 18:04:46 2007
@@ -2887,6 +2887,11 @@
 #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,11 +2922,7 @@
 		}
 	}
 
-	t4_do_counters(wc);
-
 	spin_lock(&wc->reglock);
-
-	__handle_leds(wc);
 
 	if (unlikely(wc->checktiming > 0)) {
 		__t4_set_timing_source_auto(wc);



More information about the svn-commits mailing list