Commit e0a4c87b authored by Maximilian Attems's avatar Maximilian Attems Committed by Linus Torvalds

[PATCH] mtd/cfi_cmdset_0001: replace schedule_timeout() with msleep()

Signed-off-by: default avatarNishanth Aravamudan <nacc@us.ibm.com>
Signed-off-by: default avatarMaximilian Attems <janitor@sternwelten.at>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 8143d3dc
...@@ -1437,8 +1437,7 @@ static int do_erase_oneblock(struct map_info *map, struct flchip *chip, ...@@ -1437,8 +1437,7 @@ static int do_erase_oneblock(struct map_info *map, struct flchip *chip,
spin_unlock(chip->mutex); spin_unlock(chip->mutex);
INVALIDATE_CACHED_RANGE(map, adr, len); INVALIDATE_CACHED_RANGE(map, adr, len);
set_current_state(TASK_UNINTERRUPTIBLE); msleep(chip->erase_time / 2);
schedule_timeout((chip->erase_time*HZ)/(2*1000));
spin_lock(chip->mutex); spin_lock(chip->mutex);
/* FIXME. Use a timer to check this, and return immediately. */ /* FIXME. Use a timer to check this, and return immediately. */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment