On Mon, Jun 02, 2008 at 11:56:39AM +0200, Jes Sorensen wrote:
Yes, that should work fine. You will get more mmiowb's than you
need, since some drivers, such as Fusion, don't need them. On the
Origins (older SGI MIPS-based Numa), the 'sync' instruction had
the same effect as mmiowb() with respect to mmio write ordering,
and it was issued unconditionally in the spin unlock. It was
cheaper than mmiowb, however.
If it matters, we could invent and use writel_relaxed() to get
performance back in drivers we care about....
jeremy
--