mtd/cfi_cmdset_0001: replace
Subsystems (2)
PATCH 1/1 mtd/cfi_cmdset_0001: replace
I would appreciate any comments from the janitors list.
Thanks,
Nish
Applys-to: 2.6.7
Description: Uses msleep() instead of schedule_timeout() so the task is guaranteed to delay the desired time.
Signed-off-by Nishanth Aravamudan <[email protected]>
drivers/mtd/chips/cfi_cmdset_0001.c +1 -2
@@ -1315,8 +1315,7 @@ static int do_erase_oneblock(struct map_ chip->erase_suspended =0 ;spin_unlock (chip->mutex); -set_current_state (TASK_UNINTERRUPTIBLE ); -schedule_timeout ((chip->erase_time*HZ )/(2 *1000 )); +msleep (chip->erase_time /2 );spin_lock (chip->mutex);/* FIXME. Use a timer to check this, and return immediately. */
_______________________________________________
Kernel-janitors mailing list
[email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors