linux-mips
[Top] [All Lists]

Re: PATCH: Always use ll/sc for mips

To: "H. J. Lu" <hjl@lucon.org>
Subject: Re: PATCH: Always use ll/sc for mips
From: "Maciej W. Rozycki" <macro@ds2.pg.gda.pl>
Date: Thu, 4 Jul 2002 10:00:14 +0200 (MET DST)
Cc: Ralf Baechle <ralf@oss.sgi.com>, linux-mips@oss.sgi.com, GNU C Library <libc-alpha@sources.redhat.com>
In-reply-to: <20020702140451.A18214@lucon.org>
Organization: Technical University of Gdansk
Sender: owner-linux-mips@oss.sgi.com
On Tue, 2 Jul 2002, H. J. Lu wrote:

> > Which means the overhead of two syscalls instead of one sysmips() call
> > for something that is assumed to be dirt cheap.  R3000, R5900 etc.
> > users won't this patch you, which'll have significant impact on their
> > glibc performance.
> 
> Not all ll/sc usages are implemented with sysmips. Does mips care about
> those? In case of libstdc++, should mips use ll/sc emulation?

 Anything external to glibc should use _test_and_set() which is a
published interface. 

-- 
+  Maciej W. Rozycki, Technical University of Gdansk, Poland   +
+--------------------------------------------------------------+
+        e-mail: macro@ds2.pg.gda.pl, PGP key available        +


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