![]() | |||||||||||
Messages in this thread Complete thread (EXPERIMENTAL) |
This patchset makes the behavior of atomic_read uniform by removing the volatile keyword from all atomic_t and atomic64_t definitions that currently have it, and instead explicitly casts the variable as volatile in atomic_read(). This leaves little room for creative optimization by the compiler, and is in keeping with the principles behind "volatile considered harmful". Busy-waiters should still use cpu_relax(), but fast paths may be able to reduce their use of barrier() between some atomic_read() calls. -- Chris 1) http://lkml.org/lkml/2007/7/1/52 2) http://lkml.org/lkml/2007/8/8/122 | ||||||||||
![]() | |||||||||||
| Last update: 2007-08-09 13:17 [W:0.933 / U:0.410 seconds] ©2003-2005 Jasper Spaans | |||||||||||