tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: MUTEX_CAS() and memory barriers



On Sat, Jul 24, 2021 at 05:59:59PM -0700, Jason Thorpe wrote:
> Anyway, I?m much more concerned with (1).  I think at the very least, alpha and sparc64 don?t need to define their own _lock_cas() and can just use atomic_cas_ulong()? furthermore, I think we can just let that be the default definition unless a platform has a REALLY good reason to override it (I mean, not even sh3 has to do so, because it aliases _lock_cas() to atomic_cas_ulong()).

Sounds good.

I wonder if there is some easy trick to make the ppc thing patchable for
non-affected machines (or is that already done?)

Martin


Home | Main Index | Thread Index | Old Index