<meta http-equiv="content-type" content="text/html; charset=utf-8"><pre class="done" id="83/a5/50b8403dbe7ea2d473b2cbb936ec6fc99699_3/0" style="margin-left: 0px; margin-top: 0px; margin-bottom: 0px; padding-top: 0px; padding-bottom: 0px; font-family: sans-serif; ">
You can see linux/Documentation<span class="Apple-style-span" style="font-size: medium; ">/<span class="Apple-style-span" style="font-family: arial; font-size: small; white-space: normal; ">memory_barriers.txt about barriers in common</span></span></pre>
<pre class="done" id="83/a5/50b8403dbe7ea2d473b2cbb936ec6fc99699_3/0" style="margin-left: 0px; margin-top: 0px; margin-bottom: 0px; padding-top: 0px; padding-bottom: 0px; font-family: sans-serif; font-size: medium; "><span class="Apple-style-span" style="font-family: arial; font-size: small; white-space: normal; "><br>
</span></pre><pre class="done" id="83/a5/50b8403dbe7ea2d473b2cbb936ec6fc99699_3/0" style="margin-left: 0px; margin-top: 0px; margin-bottom: 0px; padding-top: 0px; padding-bottom: 0px; "><font class="Apple-style-span" face="arial"><span class="Apple-style-span" style="white-space: normal;">i think, that specific definition of __memory_barrier depend on architecture. What file did you found this definition in?</span></font></pre>
<pre class="done" id="83/a5/50b8403dbe7ea2d473b2cbb936ec6fc99699_3/0" style="margin-left: 0px; margin-top: 0px; margin-bottom: 0px; padding-top: 0px; padding-bottom: 0px; "><font class="Apple-style-span" face="arial"><span class="Apple-style-span" style="white-space: normal;"><br>
</span></font></pre><pre class="done" id="83/a5/50b8403dbe7ea2d473b2cbb936ec6fc99699_3/0" style="margin-left: 0px; margin-top: 0px; margin-bottom: 0px; padding-top: 0px; padding-bottom: 0px; font-family: sans-serif; font-size: medium; ">
<span class="Apple-style-span" style="font-family: arial; font-size: small; white-space: normal; "><br></span></pre><div class="gmail_quote">2011/3/6 loody <span dir="ltr">&lt;<a href="mailto:miloody@gmail.com">miloody@gmail.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">hi all:<br>
I grep kernel source and found cpu_relax is defined as<br>
__memory_barrier(), which seems not defined in kernel source.<br>
At beginning I think it may be the gcc build-in functions, but I<br>
cannot find in the gcc document.<br>
Where and what is that used for?<br>
<font color="#888888"><br>
--<br>
Regards,<br>
miloody<br>
<br>
_______________________________________________<br>
Kernelnewbies mailing list<br>
<a href="mailto:Kernelnewbies@kernelnewbies.org">Kernelnewbies@kernelnewbies.org</a><br>
<a href="http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies" target="_blank">http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies</a><br>
</font></blockquote></div><br>