lkml.org 
[lkml]   [2005]   [Dec]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
DateThu, 22 Dec 2005 19:03:32 +1100
FromNick Piggin <>
SubjectRe: [patch 2/5] mutex subsystem: add architecture specific mutex primitives
Nick Piggin wrote:

> I think ARMv6 has a decent atomic_cmpxchg implementation but does
> not define __HAVE_ARCH_CMPXCHG. It might be useful to try to use this
> for ARMv6 SMP for a slightly better trylock.
>

And on UP builds, it may simply be best to open code an interrupt unsafe
cmpxchg and use atomic_cmpxchg unconditionally on SMP builds (which I
think generates half decent code on all SMP architectures).

Just something to think about. Of course this will require the dreaded
preempt_disable() which might make it a showstopper.

--
SUSE Labs, Novell Inc.

Send instant messages to your online friends http://au.messenger.yahoo.com

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-12-22 09:06    [from the cache]
©2003-2010