Re: [PATCH] add function spin_event_timeout()

From: Timur Tabi
Date: Mon Mar 09 2009 - 17:06:41 EST


Jeremy Fitzhardinge wrote:

> A jiffy is a really long time to be spinning, let alone liffies plural.
> In this use case are you expecting that the loop will iterate a very
> small number of times before returning, and the timeout case is a very
> unlikely error condition?

Yes, in version 3 of this patch, I switch to using udelay(). I might
need to post a v4 though.

--
Timur Tabi
Linux kernel developer at Freescale
--
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/