On Wed, 27 Jul 2011, Chris Simmonds wrote:
Hi,
This patch adds lightweight condition variables to the kernel to reduce
complexity and improve the efficiency of some synchronisation tasks.
They are very similar to POSIX condition variables.
It seems like a reasonable sort of thing to do, as far as I can see.
One little problem here. These routines may well be large enough
that it's inefficient to inline them. In that case they should be
declared in wait.h but defined somewhere else, such as kernel/wait.c.
Conversely, if you do think they deserve to be inlined then they should
be marked as such.
P.S.: Does this come through checkpatch.pl unscathed?