Messages in this thread |  | | | From | David Howells <> | | Subject | Re: [PATCH 1/19] MUTEX: Introduce simple mutex implementation | | Date | Fri, 16 Dec 2005 10:45:58 +0000 |
Andrew Morton <akpm@osdl.org> wrote:
> Look at it from the POV of major architectures: there's no way the new > mutex code will be faster than down() and up()
I'm thinking of making the default implementation of mutexes a straight wrapper around down() and up(). That way it'll be exactly the same as counting semaphores, just with extra constraints when the debugging is enabled _and_ effectively extra inline documentation.
But! for archs where it does matter (and we have several - you might not care, but others do), it can be overridden with something faster.
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/
|  |