Messages in this thread | | | Date | Wed, 13 Aug 2003 02:01:17 -0700 | From | Andrew Morton <> | Subject | Re: [PATCH] read_trylock for i386 |
| |
Roland McGrath <roland@redhat.com> 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 it.
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 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/
| |