]> git.baikalelectronics.ru Git - kernel.git/commit
x86[-64]:Remove 'volatile' from atomic_t
authorLinus Torvalds <torvalds@woody.osdl.org>
Wed, 6 Dec 2006 22:42:57 +0000 (14:42 -0800)
committerLinus Torvalds <torvalds@woody.osdl.org>
Wed, 6 Dec 2006 22:42:57 +0000 (14:42 -0800)
commit0ee007da0a3af2b78260c734617fb3b28253a971
tree8d1cbf17b9b54eacde5a7bf7adf4d5ba6cb119dc
parent321f7966f6f0ed1203716a6ff56313c5a5b16e58
x86[-64]:Remove 'volatile' from atomic_t

Any code that relies on the volatile would be a bug waiting to happen
anyway.

Don't encourage people to think that putting 'volatile' on data
structures somehow fixes problems.  We should always use proper locking
(and other serialization) techniques.

Signed-off-by: Linus Torvalds <torvalds@osdl.org>
include/asm-i386/atomic.h
include/asm-x86_64/atomic.h