[Asterisk-cvs] zaptel wct4xxp.c,1.26,1.27

citats at lists.digium.com citats at lists.digium.com
Mon Apr 5 05:05:42 CDT 2004


Update of /usr/cvsroot/zaptel
In directory mongoose.digium.com:/home/citats/cvs/zaptel

Modified Files:
	wct4xxp.c 
Log Message:
Minor wct4xxp improvement.  Don't call printk while we have reglock


Index: wct4xxp.c
===================================================================
RCS file: /usr/cvsroot/zaptel/wct4xxp.c,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -d -r1.26 -r1.27
--- wct4xxp.c	2 Apr 2004 17:21:44 -0000	1.26
+++ wct4xxp.c	5 Apr 2004 09:05:42 -0000	1.27
@@ -387,8 +387,8 @@
 	struct t4 *wc = chan->pvt;
 	unsigned long flags;
 	
-	spin_lock_irqsave(&wc->reglock, flags);	
 	if(debug) printk("Setting bits to %d on channel %s\n", bits, chan->name);
+	spin_lock_irqsave(&wc->reglock, flags);	
 	k = chan->span->offset;
 	if (wc->spantype[k] == TYPE_E1) { /* do it E1 way */
 		if (chan->chanpos == 16) {
@@ -427,9 +427,9 @@
 		  /* output them to the chip */
 		__t4_framer_out(wc,k,0x70 + b,c); 
 	} 
+	spin_unlock_irqrestore(&wc->reglock, flags);
 	if (debug)
 		printk("Finished setting RBS bits\n");
-	spin_unlock_irqrestore(&wc->reglock, flags);
 	return 0;
 }
 




More information about the svn-commits mailing list