[svn-commits] sruffell: linux/trunk r5635 - /linux/trunk/drivers/dahdi/dahdi_transcode.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Mon Jan 5 16:32:08 CST 2009


Author: sruffell
Date: Mon Jan  5 16:32:07 2009
New Revision: 5635

URL: http://svn.digium.com/view/dahdi?view=rev&rev=5635
Log:
spin_is_lock always evalulates to 0 on SMP kernels.  So since I still want to
keep the check in there to avoid problems in the future (and since this code
path is only used when opening a new transcoder session) I made the check
conditional on running an SMP kernel.

Modified:
    linux/trunk/drivers/dahdi/dahdi_transcode.c

Modified: linux/trunk/drivers/dahdi/dahdi_transcode.c
URL: http://svn.digium.com/view/dahdi/linux/trunk/drivers/dahdi/dahdi_transcode.c?view=diff&rev=5635&r1=5634&r2=5635
==============================================================================
--- linux/trunk/drivers/dahdi/dahdi_transcode.c (original)
+++ linux/trunk/drivers/dahdi/dahdi_transcode.c Mon Jan  5 16:32:07 2009
@@ -185,7 +185,9 @@
 	struct dahdi_transcoder_channel *chan;
 	int i;
 	/* Should be called with the translock held. */
+#ifdef CONFIG_SMP
 	WARN_ON(!spin_is_locked(&translock));
+#endif
 
 	for (i = 0; i < tc->numchannels; i++) {
 		chan = &tc->channels[i];




More information about the svn-commits mailing list