Re: [patch 04/15] Generic Mutex Subsystem, add-atomic-call-func-x86_64.patch

From: Linus Torvalds
Date: Tue Dec 20 2005 - 13:28:08 EST




On Tue, 20 Dec 2005, Nicolas Pitre wrote:
>
> Sure, and we're now more costly than the current implementation with irq
> disabling.

Do the timing. It may be more instructions, but I think it was you
yourself that timed the current thing at 23 cycles, no?

Special registers are almost always slower than nicely cached accesses
(and they all basically will be).

Linus
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/