]> git.baikalelectronics.ru Git - kernel.git/commit
mmc_spi: convert timeout handling to jiffies and avoid busy waiting
authorWolfgang Muees <wolfgang.mues@auerswald.de>
Tue, 7 Apr 2009 14:26:30 +0000 (15:26 +0100)
committerPierre Ossman <pierre@ossman.eu>
Wed, 8 Apr 2009 18:38:42 +0000 (20:38 +0200)
commitc66ff4089940beec47d48a3eaf64c1be75c341ca
treefb673041c46307965f45fd0af50e5c06f728deda
parentb44b8013f0843092aafcc7a5107c8f7e5c13a12e
mmc_spi: convert timeout handling to jiffies and avoid busy waiting

SD/MMC card timeouts can be very high. So avoid busy-waiting,
using the scheduler. Calculate all timeouts in jiffies units,
because this will give us the correct sign when to involve
the scheduler.

Signed-off-by: Wolfgang Muees <wolfgang.mues@auerswald.de>
Signed-off-by: Pierre Ossman <pierre@ossman.eu>
drivers/mmc/host/mmc_spi.c