This is the mail archive of the libc-ports@sources.redhat.com mailing list for the libc-ports project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Avoid unnecessary busy loop in __lll_timedlock_wait on ARM.


From: "Carlos O'Donell" <carlos@systemhalted.org>
Date: Fri, 8 Feb 2013 23:18:42 -0500

> I see that sparc32 also has a unique copy of lowlevellock.c Why the
> use of *_24_* atomic primitives? Faster?

On pre-v9 32-bit sparc, we lack any usable atomic compare and
swap.

All we have is an 8-bit spinlock.

So we implement things in a 32-bit word which is composed of a 24-bit
counter and an 8-bit lock.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]