Update of /usr/cvsroot/zaptel
In directory mongoose.digium.com:/tmp/cvs-serv27567

Modified Files:
        wct4xxp.c 
Log Message:
More 2nd gen updates


Index: wct4xxp.c
===================================================================
RCS file: /usr/cvsroot/zaptel/wct4xxp.c,v
retrieving revision 1.66
retrieving revision 1.67
diff -u -d -r1.66 -r1.67
--- wct4xxp.c   20 May 2005 20:39:28 -0000      1.66
+++ wct4xxp.c   1 Jun 2005 17:15:28 -0000       1.67
@@ -53,6 +53,16 @@
 
 /* #define ENABLE_TASKLETS */
 
+
+/* Work queues are a way to better distribute load on SMP systems */
+#define ENABLE_WORKQUEUES 
+
+/* Enable prefetching may help performance */
+#define ENABLE_PREFETCH
+
+/* Support first generation cards? */
[...1861 lines suppressed...]
+#ifdef ENABLE_WORKQUEUES
+               if (wc->workq) {
+                       flush_workqueue(wc->workq);
+                       destroy_workqueue(wc->workq);
+               }
+#endif                 
 #if 0
                /* Stop any DMA */
                __t1xxp_stop_dma(wc);
@@ -2425,8 +2762,8 @@
                cards[wc->num] = NULL;
                pci_set_drvdata(pdev, NULL);
                for (x=0;x<4;x++) {
-                       if (wc->chans[x])
-                               kfree(wc->chans[x]);
+                       if (wc->tspans[x])
+                               kfree(wc->tspans[x]);
                }
                kfree(wc);
        }

_______________________________________________
Asterisk-Cvs mailing list
[email protected]
http://lists.digium.com/mailman/listinfo/asterisk-cvs

Reply via email to