lkml.org 
[lkml]   [2009]   [Jul]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [Patch RFC 01/37] semaphore: Add DEFINE_SEMAPHORE, semaphore_init, semaphore_init_locked
From
Date
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



\
 
 \ /
  Last update: 2009-07-27 01:07    [W:0.230 / U:0.044 seconds]
©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site