[PATCH 2/2] Convert PowerPC macro spin_event_timeout() to architecture independent macro

Srivastava Rajan-B34330 B34330 at freescale.com
Thu Aug 1 02:27:36 EDT 2013


-----Original Message-----
From: linux-kernel-owner at vger.kernel.org [mailto:linux-kernel-owner at vger.kernel.org] On Behalf Of Stephen Boyd
Sent: Thursday, August 01, 2013 5:34 AM

>> The answer to your question is that you should not use
>> spin_event_timeout() in interrupt context, because it yields.

> If it yields why are we using udelay? Why not usleep_range()? It would be useful to have a variant that worked in interrupt context and it looked like > that was almost possible.

Looks like the macro yields when 'delay', the third arg to the macro, is zero; otherwise the macro performs one or more udelays. If this is correct, can usleep_range() help?





More information about the linux-arm-kernel mailing list