David Howells wrote: > Russell King <rmk@xxxxxxxxxxxxxxxx> wrote: > > We use the standard generic kernel implementation. Is x86 different? ;) > > The optimised fast paths used on x86 rwsems don't disable interrupts. Any reason not to use the same technique for all the archs - plus the trick used in arch/armkernel/entry-armv.S:__kuser_cmpxchg for those archs which don't have atomic instructions or ll/sc? If the problem here is _only_ semaphores, and the above might make semaphores faster anyway, perhaps it's a solution. -- Jamie -- To unsubscribe from this list: send the line "unsubscribe linux-arch" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html