Messages in this thread | ![/](/images/icornerl.gif) | | From | David Howells <> | Subject | Re: [PATCH 1/19] MUTEX: Introduce simple mutex implementation | Date | Fri, 16 Dec 2005 16:02:11 +0000 |
| |
Nick Piggin <nickpiggin@yahoo.com.au> wrote:
> So I don't know why you're so worried about sparc32 and parisc while > preferring to introduce a worse default implementation that even your frv > architecture wants to override...?
I now think the base default should be a wrapper around the counting semaphores, because that is the easiest path (they already exist) and it's also the fastest path on some platforms.
But I want to be able to override the implementation on such as FRV because I can do a better mutex than a counting semaphore there as I only have SWAP available as an atomic op.
However, I would like to make the unconditional-exchange mutex a template that can be overridden so that other archs can use it with one Kconfig option and a few #defines in asm/system.h.
David - 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/
| ![\](/images/icornerr.gif) |