lkml.org 
[lkml]   [2010]   [Sep]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: [patch 12/30] ibmphp-hpc: semaphore cleanup
On Tue, 07 Sep 2010 14:32:38 -0000
Thomas Gleixner <tglx@linutronix.de> wrote:

> Get rid of init_MUTEX[_LOCKED]() and use sema_init() instead.
>
> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
> Cc: Jesse Barnes <jbarnes@virtuousgeek.org>
> Cc: linux-pci@vger.kernel.org
>
> ---
> drivers/pci/hotplug/ibmphp_hpc.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> Index: linux-2.6/drivers/pci/hotplug/ibmphp_hpc.c
> ===================================================================
> --- linux-2.6.orig/drivers/pci/hotplug/ibmphp_hpc.c
> +++ linux-2.6/drivers/pci/hotplug/ibmphp_hpc.c
> @@ -133,8 +133,8 @@ void __init ibmphp_hpc_initvars (void)
> debug ("%s - Entry\n", __func__);
>
> mutex_init(&sem_hpcaccess);
> - init_MUTEX (&semOperations);
> - init_MUTEX_LOCKED (&sem_exit);
> + sema_init(&semOperations, 1);
> + sema_init(&sem_exit, 0);
> to_debug = 0;
>
> debug ("%s - Exit\n", __func__);
>
>
>

Applied to my linux-next branch, thanks.

--
Jesse Barnes, Intel Open Source Technology Center


\
 
 \ /
  Last update: 2010-09-09 22:45    [W:0.327 / U:0.044 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site