linux-mips
[Top] [All Lists]

Re: Once again: test_and_set for CPUs w/o LL/SC

To: Johannes Stezenbach <js@convergence.de>
Subject: Re: Once again: test_and_set for CPUs w/o LL/SC
From: "Gleb O. Raiko" <raiko@niisi.msk.ru>
Date: Thu, 17 Oct 2002 13:47:26 +0400
Cc: "Maciej W. Rozycki" <macro@ds2.pg.gda.pl>, "Kevin D. Kissell" <kevink@mips.com>, linux-mips@linux-mips.org
Organization: NIISI RAN
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <20021015172108.GD21220@convergence.de> <Pine.GSO.3.96.1021016140828.14774I-100000@delta.ds2.pg.gda.pl> <20021016125233.GA25227@convergence.de> <20021016163038.GA26585@convergence.de>
Sender: linux-mips-bounce@linux-mips.org
Johannes Stezenbach wrote:
> 
> I wrote:
> 
> > sysmips is history with current glibc since the Linux kernel emulates
> > LL/SC for CPUs that don't have it. This emulation is actually faster than
> > sysmips. (You'd think it's slower because it's one syscall vs. two
> > emulated instructions. But with LL/SC glibc can use test-and-set
>                                                       ^^^^^^^^^^^^
> > which enables a more efficient linux-threads mutex implementation.)
> 
> Oops, I meant compare-and-swap.

Implement new sysmips then.

Regards,
Gleb.

<Prev in Thread] Current Thread [Next in Thread>