Re: atomic-up.h speedup : compared with irq disable/enable

Mathieu Desnoyers <[email protected]>
Newsgroups gmane.linux.kernel.tracing
Message-ID <20061110182338.GA7967@Krystal>
* Robert Wisniewski ([email protected]) wrote:
> You're right though, there is a qualitative difference in that the atomic
> op on the UP x86 is uninterruptable, where it would be possible even on UP
> to be interrupted in the middle of an atomic operation implemented with
> load linked/store conditional primitives.
> 

In our case, however, my understanding is that because the store conditional
primitive only succeeds if the memory area has not been modified since the load
linked, we are sure that even in the UP case, a NMI that would come right
between those two instructions would simply cause the sc to fail, thus retrying
the operation. Please correct me if I am wrong.

Mathieu


OpenPGP public key:              http://krystal.dyndns.org:8080/key/compudj.gpg
Key fingerprint:     8CD5 52C3 8E3C 4140 715F  BA06 3F25 A8FE 3BAE 9A68
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.