serial/pmac_zilog: replace
Subsystems (2)
PATCH 1/1 serial/pmac_zilog: replace
I would appreciate any comments from the janitors list.
Applys-to: 2.6.7
Description: Use msleep() instead of schedule_timeout() to guarantee the task delays for the desired time.
Signed-off-by Nishanth Aravamudan <[email protected]>
drivers/serial/pmac_zilog.c +2 -4
@@ -949,8 +949,7 @@ static int pmz_startup(struct uart_port*/ if (pwr_delay !=0 ) {pmz_debug ("pmz: delaying %d ms\n" , pwr_delay); -set_current_state (TASK_UNINTERRUPTIBLE ); -schedule_timeout ((pwr_delay *HZ )/1000 ); +msleep (pwr_delay); }/* IrDA reset is done now */
@@ -1680,8 +1679,7 @@ static int pmz_resume(struct macio_dev **/ if (pwr_delay !=0 ) {pmz_debug ("pmz: delaying %d ms\n" , pwr_delay); -set_current_state (TASK_UNINTERRUPTIBLE ); -schedule_timeout ((pwr_delay *HZ )/1000 ); +msleep (pwr_delay); }pmz_debug ("resume, switching complete\n" );
_______________________________________________
Kernel-janitors mailing list
[email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors