From 892e9c21da9c9aa738f8849e402a7b66b6566410 Mon Sep 17 00:00:00 2001 From: Thomas Gleixner Date: Tue, 1 Mar 2005 09:32:48 +0000 Subject: [PATCH] --- yaml --- r: 4501 b: refs/heads/master c: 20a6c211903dce92a0db7f19c221cfa3f2cb4c32 h: refs/heads/master i: 4499: a18299f70b7145a2147203527be7c5c477970430 v: v3 --- [refs] | 2 +- trunk/drivers/mtd/nand/nand_base.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/[refs] b/[refs] index 93f24089c484..4881d6cabd5f 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 31fbdf7aa5aac8a2a34f180a25deb157297a10c9 +refs/heads/master: 20a6c211903dce92a0db7f19c221cfa3f2cb4c32 diff --git a/trunk/drivers/mtd/nand/nand_base.c b/trunk/drivers/mtd/nand/nand_base.c index 4d7c916c74fc..4c94ec632aed 100644 --- a/trunk/drivers/mtd/nand/nand_base.c +++ b/trunk/drivers/mtd/nand/nand_base.c @@ -59,7 +59,7 @@ * The AG-AND chips have nice features for speed improvement, * which are not supported yet. Read / program 4 pages in one go. * - * $Id: nand_base.c,v 1.134 2005/02/22 21:56:46 gleixner Exp $ + * $Id: nand_base.c,v 1.135 2005/03/01 09:32:45 gleixner Exp $ * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as @@ -830,7 +830,7 @@ static int nand_wait(struct mtd_info *mtd, struct nand_chip *this, int state) if (this->read_byte(mtd) & NAND_STATUS_READY) break; } - msleep(1); + cond_resched(); } status = (int) this->read_byte(mtd); return status;