Re: write_unlock: replace clear_bit with byte store

Christoph Lameter
2005-04-29T15:30:27Z

On Fri, 29 Apr 2005, David Mosberger wrote:

> >>>>> On Fri, 29 Apr 2005 08:19:20 -0700 (PDT), Christoph Lameter <clameter@engr.sgi.com> said:
>
> Christoph> On Fri, 29 Apr 2005, David Mosberger wrote:
> >> Let's not reintroduce in-line asm, please?
>
> Christoph> How do I do a nta store without inline asm?
>
> You add a new intrinsic?
>
> Christoph> There is already lots of inline asm in spinlock.h.
>
> spinlock.h is special because it performs non-standard calls to the
> out-of-line spinlock contention-handler, but those places are enclosed
> inside ASM_SUPPORTED.

So is my version of inline asm int the latest version from yesterday.
There is an alternate version included for !ASM_SUPPORTED in C which does
not use an nta store.