Thread (26 messages) 26 messages, 6 authors, 2007-09-03

Re: wmb vs mmiowb

From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Date: 2007-08-23 07:26:46

Of course, the normal memory barrier would usually be a "spin_unlock()" or 
something like that, not a "wmb()". In fact, I don't think the powerpc 
implementation (as an example of this) will actually synchronize with 
anything *but* a spin_unlock().
We are even more sneaky in the sense that we set a per-cpu flag on any
MMIO write and do the sync automatically in spin_unlock() :-)

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