]> git.openfabrics.org - ~shefty/rdma-win.git/commitdiff
[mlx4,eth] Remove unnecessary printing.
authortzachid <tzachid@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Tue, 17 Nov 2009 12:52:17 +0000 (12:52 +0000)
committertzachid <tzachid@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Tue, 17 Nov 2009 12:52:17 +0000 (12:52 +0000)
git-svn-id: svn://openib.tc.cornell.edu/gen1@2572 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

trunk/hw/mlx4/kernel/bus/net/eq.c
trunk/hw/mlx4/kernel/inc/shutter.h

index 6778596b1550d84c23a608a92198bdb7d944b5de..8947112176c7f67b0029e993f812c7501b282bc1 100644 (file)
@@ -302,19 +302,16 @@ VOID eq_polling_thread(void *ctx)
        for(;;){
 
                /* before start polling */
-               DbgPrint("Before polling.\n");
                for (;;) {
                        status = KeWaitForMultipleObjects( 2, wait_objects, 
                                                                                           WaitAny, Executive, KernelMode, FALSE, NULL, NULL );
 
                        if ( status == STATUS_WAIT_0 ){/* thread stopped */
-                               DbgPrint("Signaled to stop polling.\n");
                                break;          
                        }
 
                        /* start polling */
                        if ( status == STATUS_WAIT_1 ){
-                               DbgPrint("Signaled to start polling.\n");
                                break;          
                        }
 
@@ -324,7 +321,6 @@ VOID eq_polling_thread(void *ctx)
                if ( status == STATUS_WAIT_0 ) continue;/* thread stopped, wait for start again */
 
                /* polling */
-               DbgPrint("Start polling.\n");
                wait_time.QuadPart = -(int64_t)(((uint64_t)POLLING_INTERVAL_MS) * 10000);
                for (;;) {
                        //mlx4_interrupt( NULL, &priv->dev );
@@ -334,7 +330,6 @@ VOID eq_polling_thread(void *ctx)
                                                                                        Executive, KernelMode, FALSE, &wait_time );
                        if ( status == STATUS_SUCCESS ) {
                                //KeClearEvent(&priv->eq_table.thread_stop_event);
-                               DbgPrint("Signaled to stop polling while in polling mode.\n");
                                break;          /* thread stopped */
                        }
                }
@@ -342,7 +337,6 @@ VOID eq_polling_thread(void *ctx)
                if(priv->eq_table.bTerminated) break;
        }
 
-       DbgPrint("Polling thread terminated.\n");
        PsTerminateSystemThread(STATUS_SUCCESS);
 
 }
index 467bea835cd7da195d8992bede918007759192bd..2aed12913428c61f34e305d450d10e19f13ed160 100644 (file)
@@ -105,17 +105,13 @@ static inline void shutter_shut(shutter_t * p_shutter)
        if (res) \r
                // We are now waiting for the object to reach -MAX_OPERATIONS\r
                KeWaitForSingleObject( &p_shutter->event, Executive, KernelMode, FALSE, NULL );\r
-\r
-    ASSERT(p_shutter->cnt == -MAX_OPERATIONS);\r
 }\r
 \r
 static inline void shutter_alive(shutter_t * p_shutter)\r
 {\r
     long res = 0;\r
-    long old_cnt = 0;\r
-    old_cnt = p_shutter->cnt;\r
-    ASSERT(p_shutter->cnt == -MAX_OPERATIONS);\r
-       // Mark the counter as locked\r
+    \r
+       // Mark the counter as alive\r
        res = InterlockedExchangeAdd(&p_shutter->cnt, MAX_OPERATIONS);\r
        ASSERT(res < 0);\r
 }\r