For a generic "powerpc" kernel it can be understood, but when you
consider that on 970/POWER4 and above they use lwsync instead of sync
lwsync (sync 1) doesn't (architecturally) do anything to order MMIO
accesses, so you're misunderstanding something.
(google for them and see the mailing list posts :), just to breathe
back
some performance in spinlocks and so on, surely this can be
rejigged so
that processors don't do more work than necessary..? Even a noop takes
time doesn't it?
No-ops don't matter for performance, compared to the cost of the I/O
itself. It would help to avoid heavier-than-necessary synchronisation
instructions if not needed on some certain CPU (or on non-SMP kernels,
etc.)
Segher