Re: thoughts on potential cleanup of semaphores?

From: Andi Kleen
Date: Mon Oct 16 2006 - 09:46:42 EST


"Robert P. J. Day" <rpjday@xxxxxxxxxxxxxx> writes:

> after submitting one patch related to semaphores and before i submit
> any others, any thoughts whether any of the following clean-ups are
> valid and/or worthwhile? (some are admittedly simply aesthetic but
> better aesthetics is never a bad thing.)

Semaphores and rwsems need a lot of cleanup. Some time ago we put
spinlocks which are a lot more time critical than semaphores
out of line. So the same could be done for semaphores too. This
had the advantages that most of the assembler voodoo wouldn't
be needed anymore and they could be simple straight C implementations
shared by all architectures.

-Andi
-
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/