Thread (17 messages) 17 messages, 5 authors, 2013-08-01

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

From: Timur Tabi <hidden>
Date: 2013-08-01 00:13:08
Also in: linux-m68k, lkml, sparclinux

On 07/31/2013 07:04 PM, Stephen Boyd wrote:
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.
I've never heard of usleep_range() before, so I don't know if it
applies.  Apparently, udelay() includes its own call to cpu_relax().  Is
it possible that cpu_relax() is a "lightweight" yield, compared to sleeping?

FYI, you might want to look at the code reviews for spin_event_timeout()
on the linuxppc-dev mailing list, back in March 2009.

-- 
-- 
Timur Tabi
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help