]> git.hungrycats.org Git - linux/commitdiff
[PATCH] mtd/cfi_cmdset_0001: replace schedule_timeout() with msleep()
authorMaximilian Attems <janitor@sternwelten.at>
Fri, 3 Sep 2004 03:38:50 +0000 (20:38 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Fri, 3 Sep 2004 03:38:50 +0000 (20:38 -0700)
Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com>
Signed-off-by: Maximilian Attems <janitor@sternwelten.at>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/mtd/chips/cfi_cmdset_0001.c

index e71624edb2aa75a9df4a2777382555648b6ba659..37c9dcfd96965d12541805e4e0ae6e209ca84c76 100644 (file)
@@ -1437,8 +1437,7 @@ static int do_erase_oneblock(struct map_info *map, struct flchip *chip,
 
        spin_unlock(chip->mutex);
        INVALIDATE_CACHED_RANGE(map, adr, len);
-       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. */