[zaptel-commits] sruffell: branch 1.4 r4607 - /branches/1.4/kernel/zttranscode.c

SVN commits to the Zaptel project zaptel-commits at lists.digium.com
Mon Jan 5 16:31:46 CST 2009


Author: sruffell
Date: Mon Jan  5 16:31:40 2009
New Revision: 4607

URL: http://svn.digium.com/view/zaptel?view=rev&rev=4607
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:
    branches/1.4/kernel/zttranscode.c

Modified: branches/1.4/kernel/zttranscode.c
URL: http://svn.digium.com/view/zaptel/branches/1.4/kernel/zttranscode.c?view=diff&rev=4607&r1=4606&r2=4607
==============================================================================
--- branches/1.4/kernel/zttranscode.c (original)
+++ branches/1.4/kernel/zttranscode.c Mon Jan  5 16:31:40 2009
@@ -183,8 +183,10 @@
 {
 	struct zt_transcoder_channel *chan;
 	int i;
+#ifdef CONFIG_SMP
 	/* Should be called with the translock held. */
 	WARN_ON(!spin_is_locked(&translock));
+#endif
 
 	for (i = 0; i < tc->numchannels; i++) {
 		chan = &tc->channels[i];




More information about the zaptel-commits mailing list