Re: memory_barrier

From: Roland Dreier
Date: Sat Apr 09 2005 - 15:42:49 EST


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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/