Messages in this thread | | | Subject | Re: memory_barrier | From | Roland Dreier <> | Date | Sat, 09 Apr 2005 12:28:00 -0700 |
| |
Bart> Hi, Is there any reason why __memory_barrier() is still Bart> referenced in the kernel source?
Bart> grep -r memory_barrier gave the following back, which at Bart> first seems to suggest barrier() is defined using some Bart> phantom __memory_barrier(), quite deceiving...
Notice that it's used in <linux/compiler-intel.h> -- the Intel compiler has an intrinsic called __memory_barrier(). So the definition of barrier() using this intrinsic is entirely correct and appropriate.
- R. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |