<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <pre class="content">Stephen,

Thanks for your comments!  I'm evaluating the generic code of spinlock
on std atomics of LoongArch toolchain. An updated patch will come later.
</pre>
    <div class="moz-cite-prefix">On 2022/5/28 下午11:54, Stephen Hemminger
      wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:20220528085410.62f27ba2@hermes.local">
      <pre class="moz-quote-pre" wrap="">On Sat, 28 May 2022 17:32:52 +0800
Min Zhou <a class="moz-txt-link-rfc2396E" href="mailto:zhoumin@loongson.cn"><zhoumin@loongson.cn></a> wrote:

</pre>
      <blockquote type="cite">
        <pre class="moz-quote-pre" wrap="">This patch adds spinlock operations for LoongArch architecture.
These implementations refer to GLIBC pthread_spin_xxlock(). The
underlying implementation is based on LoongArch atomic
instructions (ie, AMSWAP_DB.W).

Signed-off-by: Min Zhou <a class="moz-txt-link-rfc2396E" href="mailto:zhoumin@loongson.cn"><zhoumin@loongson.cn></a>
</pre>
      </blockquote>
      <pre class="moz-quote-pre" wrap="">
If you supported std atomics, then the g eneric code
could work here.
</pre>
    </blockquote>
  </body>
</html>