patch-1.3.22 linux/drivers/block/sjcd.c

Next file: linux/drivers/block/triton.c
Previous file: linux/drivers/block/sbpcd.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.21/linux/drivers/block/sjcd.c linux/drivers/block/sjcd.c
@@ -380,13 +380,13 @@
   } else if( --sjcd_status_timeout <= 0 ){
     wake_up( &sjcd_waitq );
   } else {
-    SJCD_SET_TIMER( sjcd_status_timer, 1 );
+    SJCD_SET_TIMER( sjcd_status_timer, HZ/100 );
   }
 }
 
 static int sjcd_wait_for_status( void ){
   sjcd_status_timeout = SJCD_WAIT_FOR_STATUS_TIMEOUT;
-  SJCD_SET_TIMER( sjcd_status_timer, 1 ); 
+  SJCD_SET_TIMER( sjcd_status_timer, HZ/100 );
   sleep_on( &sjcd_waitq );    
   if( sjcd_status_timeout <= 0 )
     printk( "sjcd: Error Wait For Status.\n" );
@@ -1223,7 +1223,7 @@
   /*
    * Get back in some time.
    */
-  SJCD_SET_TIMER( sjcd_poll, 1 );
+  SJCD_SET_TIMER( sjcd_poll, HZ/100 );
 }
 
 static void do_sjcd_request( void ){
@@ -1252,7 +1252,7 @@
 	  }
 	}
 	sjcd_transfer_state = SJCD_S_START;
-	SJCD_SET_TIMER( sjcd_poll, 1 );
+	SJCD_SET_TIMER( sjcd_poll, HZ/100 );
       }
       break;
     }

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this