[MMC] sdhci: fix timeout loops in sdhci
authorPierre Ossman <drzeus@drzeus.cx>
Fri, 30 Jun 2006 09:22:23 +0000 (02:22 -0700)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sun, 2 Jul 2006 15:02:02 +0000 (16:02 +0100)
commit7cb2c76fa2251474e42d55b75163c9d7ed11741e
tree65354e6d46ae68915481a7a3f86fbcbb92c4d803
parent146ad66eac836c0b976c98f428d73e1f6a75270d
[MMC] sdhci: fix timeout loops in sdhci

The current timeout loop assume that jiffies are updated.  This might not be
the case depending on locks and if the kernel is compiled without preemption.
Change the system to use a counter and fixed delays.

Signed-off-by: Pierre Ossman <drzeus@drzeus.cx>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
drivers/mmc/sdhci.c