public inbox for libc-hacker@sourceware.org
 help / color / mirror / Atom feed
* Re: [PATCH] sparc* bits/atomic.h
       [not found] <20030330224405.GA16629@sunsite.ms.mff.cuni.cz>
@ 2003-03-30 23:59 ` Roland McGrath
  0 siblings, 0 replies; 2+ messages in thread
From: Roland McGrath @ 2003-03-30 23:59 UTC (permalink / raw)
  To: Jakub Jelinek; +Cc: Ulrich Drepper, Glibc hackers

> 2003-03-31  Jakub Jelinek  <jakub@redhat.com>
> 
> 	* sysdeps/sparc/sparc32/bits/atomic.h: New file.
> 	* sysdeps/sparc/sparc32/sparcv9/bits/atomic.h: New file.
> 	* sysdeps/sparc/sparc64/bits/atomic.h: New file.
> 
> 	* sysdeps/sparc/sparc32/atomicity.h: Removed.
> 	* sysdeps/sparc/sparc32/sparcv9/atomicity.h: Removed.
> 	* sysdeps/sparc/sparc64/atomicity.h: Removed.

Thanks, applied.

> sparc32 (not v9) lacks compare and swap, so it is implemented using
> test-and-set and a global lock. IMHO better than no locking at all,
> performance will suck as usually on those aging boxes.

Are there any actual MP boxes using those chips that Linux runs on?  If not
then you could use a software atomic sequence with kernel support like SH does.
e.g., the low bit of the thread register says to reload the PC from some
other register (and clear the flag bit).


Thanks,
Roland

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] sparc* bits/atomic.h
       [not found] <20030330184700.J13397@devserv.devel.redhat.com>
@ 2003-03-31  7:18 ` Roland McGrath
  0 siblings, 0 replies; 2+ messages in thread
From: Roland McGrath @ 2003-03-31  7:18 UTC (permalink / raw)
  To: Jakub Jelinek; +Cc: Ulrich Drepper, Glibc hackers

> On Sun, Mar 30, 2003 at 03:40:01PM -0800, Roland McGrath wrote:
> > > sparc32 (not v9) lacks compare and swap, so it is implemented using
> > > test-and-set and a global lock. IMHO better than no locking at all,
> > > performance will suck as usually on those aging boxes.
> > 
> > Are there any actual MP boxes using those chips that Linux runs on?
> 
> Yes, there are.

Oh well, tough noogies for them.  

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-03-30 23:59 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20030330224405.GA16629@sunsite.ms.mff.cuni.cz>
2003-03-30 23:59 ` [PATCH] sparc* bits/atomic.h Roland McGrath
     [not found] <20030330184700.J13397@devserv.devel.redhat.com>
2003-03-31  7:18 ` Roland McGrath

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).