[lkml]   [2003]   [Aug]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH] read_trylock for i386
Roland McGrath <> wrote:
> The following header patches add the read_trylock macro, implementing it
> fully for i386 and leaving other architectures with an always-fail fallback.

Looks reasonable, and we do need read_trylock() for symmetry at least. And
I did need it for the CONFIG_PREEMT low-latency read_lock() implementation.

Please note that the lockmeter patch in -mm kernels has implementations of
_raw_read_trylock() for sparc64, alpha and ia64. ppc64 already implements

So it would be better if someone could sweep all those together, implement
the necessary stubs for uniprocessor builds on all architectures and
apologetically break the build on the remaining SMP architectures.

That would appear to be mips, parisc, s390, sparc and x86_64.

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:47    [W:0.104 / U:2.076 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site