| Subject | Re: [Patch RFC 01/37] semaphore: Add DEFINE_SEMAPHORE, semaphore_init, semaphore_init_locked | From | Daniel Walker <> | Date | Sun, 26 Jul 2009 16:04:49 -0700 |
| |
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
|