vserver 2.0 rc7
[linux-2.6.git] / drivers / serial / crisv10.c
index 676c423..3da5494 100644 (file)
@@ -3757,10 +3757,8 @@ rs_write(struct tty_struct * tty, int from_user,
                e100_enable_rx_irq(info);
 #endif
 
-               if (info->rs485.delay_rts_before_send > 0) {
-                       set_current_state(TASK_INTERRUPTIBLE);
-                       schedule_timeout((info->rs485.delay_rts_before_send * HZ)/1000);
-               }
+               if (info->rs485.delay_rts_before_send > 0)
+                       msleep(info->rs485.delay_rts_before_send);
        }
 #endif /* CONFIG_ETRAX_RS485 */