Linus Torvalds writes: (Summary)
BUT, this is where isync comes in:
BUT, this is where isync comes in:
which is why I think that a spinlock implementation that uses isync would give us the semantics we want, without the use of the crazy expensive 'sync' that Michael tested (and which apparently gets horrible 10% scheduler performance regressions at least on some powerpc CPU's).
powerpc CPU's).
Linus
Linus
Linus
BUT, this is where isync comes in:
[...]
NOT be done earlier than stores outside of it!).which is why I think that a spinlock implementation that uses isync would give us the semantics we want, without the use of the crazy expensive 'sync' that Michael tested (and which apparently gets horrible 10% scheduler performance regressions at least on some powerpc CPU's).
powerpc CPU's).
Linus
Linus
Linus