From: tzachid Date: Tue, 17 Nov 2009 12:52:17 +0000 (+0000) Subject: [mlx4,eth] Remove unnecessary printing. X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=7ea255c47240758ae5a766eba7707ef45a2704ec;p=~shefty%2Frdma-win.git [mlx4,eth] Remove unnecessary printing. git-svn-id: svn://openib.tc.cornell.edu/gen1@2572 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86 --- diff --git a/trunk/hw/mlx4/kernel/bus/net/eq.c b/trunk/hw/mlx4/kernel/bus/net/eq.c index 6778596b..89471121 100644 --- a/trunk/hw/mlx4/kernel/bus/net/eq.c +++ b/trunk/hw/mlx4/kernel/bus/net/eq.c @@ -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); } diff --git a/trunk/hw/mlx4/kernel/inc/shutter.h b/trunk/hw/mlx4/kernel/inc/shutter.h index 467bea83..2aed1291 100644 --- a/trunk/hw/mlx4/kernel/inc/shutter.h +++ b/trunk/hw/mlx4/kernel/inc/shutter.h @@ -105,17 +105,13 @@ static inline void shutter_shut(shutter_t * p_shutter) if (res) // We are now waiting for the object to reach -MAX_OPERATIONS KeWaitForSingleObject( &p_shutter->event, Executive, KernelMode, FALSE, NULL ); - - ASSERT(p_shutter->cnt == -MAX_OPERATIONS); } static inline void shutter_alive(shutter_t * p_shutter) { long res = 0; - long old_cnt = 0; - old_cnt = p_shutter->cnt; - ASSERT(p_shutter->cnt == -MAX_OPERATIONS); - // Mark the counter as locked + + // Mark the counter as alive res = InterlockedExchangeAdd(&p_shutter->cnt, MAX_OPERATIONS); ASSERT(res < 0); }