| To: | schwab@suse.de |
|---|---|
| Subject: | Re: [libc-alpha] Re: PATCH: Fix ll/sc for mips |
| From: | Geoff Keating <geoffk@geoffk.org> |
| Date: | Fri, 1 Feb 2002 03:23:43 -0800 |
| Cc: | machida@sm.sony.co.jp, kaz@ashi.footprints.net, hjl@lucon.org, macro@ds2.pg.gda.pl, libc-alpha@sources.redhat.com, linux-mips@oss.sgi.com |
| In-reply-to: | <jebsf9bhot.fsf@sykes.suse.de> (message from Andreas Schwab on Fri, 01 Feb 2002 11:49:22 +0100) |
| References: | <20020201.123523.50041631.machida@sm.sony.co.jp> <Pine.LNX.4.33.0201311952440.2305-100000@ashi.FootPrints.net> <20020201.135903.123568420.machida@sm.sony.co.jp> <jebsf9bhot.fsf@sykes.suse.de> |
| Reply-to: | Geoff Keating <geoffk@redhat.com> |
| Sender: | owner-linux-mips@oss.sgi.com |
> From: Andreas Schwab <schwab@suse.de> > Date: Fri, 01 Feb 2002 11:49:22 +0100 > There is no way to find out anything about intermediate values of *p when > compare_and_swap returns zero. The value of *p can change anytime, even > if it only was different from oldval just at the time compare_and_swap did > the comparison. So there is zero chance that a spurious failure of > compare_and_swap breaks anything. Something to watch out for, though, is livelock. Consider the situation in which two processors are competing for a cache line, and both only win at the 'wrong' time: when computing a new value to be passed to compare_and_swap rather than when actually trying to perform the compare_and_swap. This is why on powerpc the loop is coded in the asm statement. -- - Geoffrey Keating <geoffk@geoffk.org> <geoffk@redhat.com> |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [libc-alpha] Re: PATCH: Fix ll/sc for mips, Hiroyuki Machida |
|---|---|
| Next by Date: | Re: PATCH: Fix ll/sc for mips, Maciej W. Rozycki |
| Previous by Thread: | Re: [libc-alpha] Re: PATCH: Fix ll/sc for mips, Andreas Schwab |
| Next by Thread: | Re: [PATCH] Migration to input api for keyboards, Vojtech Pavlik |
| Indexes: | [Date] [Thread] [Top] [All Lists] |