Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 6 Aug 2018 11:44:32 +0200
From:      Hans Petter Selasky <hps@selasky.org>
To:        Mateusz Guzik <mjguzik@gmail.com>
Cc:        src-committers <src-committers@freebsd.org>, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   Re: svn commit: r337374 - head/sys/compat/linuxkpi/common/include/asm
Message-ID:  <2cbeb61b-6d24-84ed-e9d4-5d91a79cbf05@selasky.org>
In-Reply-To: <CAGudoHFNL=uyN6jnbjGNCJDX1z%2BW7bt17wg2RKg=u_R759veSg@mail.gmail.com>
References:  <201808060840.w768e2gl023307@repo.freebsd.org> <CAGudoHFNL=uyN6jnbjGNCJDX1z%2BW7bt17wg2RKg=u_R759veSg@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 08/06/18 11:33, Mateusz Guzik wrote:
> This code is seriously inferior to atomic_fcmpset_long, which happens to
> return the found value just like the linux atomic_long_cmpxchg would.
> 
> The atomic_cmpset_* primitives should not be used if the target value is to
> be inspected.

Hi,

The LinuxKPI has already has few places of atomic_cmpset_* currently.

Can I assume that atomic_fcmpset_* is available for all platforms where 
atomic_cmpset_* is available?

--HPS



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?2cbeb61b-6d24-84ed-e9d4-5d91a79cbf05>