Re: [Patch RFC 01/37] semaphore: Add DEFINE_SEMAPHORE,semaphore_init, semaphore_init_locked

From: Daniel Walker
Date: Sun Jul 26 2009 - 19:05:02 EST


On Sun, 2009-07-26 at 08:17 +0000, Thomas Gleixner wrote:

> +static inline void __deprecated semaphore_init_locked(struct semanphore *sem)
> +{
> + sema_init(sem, 0);
> +}
> +
> #define init_MUTEX(sem) sema_init(sem, 1)
> #define init_MUTEX_LOCKED(sem) sema_init(sem, 0)

Maybe you could introduce this _after_ you do the semaphore to
completion cleanup .. This init_locked is just adding a bunch of code
flux on top of that..

Daniel

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