Re: [PATCH 5/7] mmc_spi: allow higher timeouts for SPI mode

From: David Brownell
Date: Wed Mar 11 2009 - 16:17:58 EST


On Wednesday 11 March 2009, Wolfgang Mües wrote:
> > Is there a reason that you didn't implement this with msleep()
> > as was noted in the comment above the timeout?
>
> Yes. msleep() is a busy waiting. It is implemented in terms of usleep(),
> which is also busy waiting. The old comment is wrong.

I think you're confused. A *delay() call will busy-wait.
But a *sleep() call like msleep() will schedule.

(These speed concerns apply primarily to patch #6, not
this one ...)

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/