lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20100909134231.0edf3136@jbarnes-desktop>
Date:	Thu, 9 Sep 2010 13:42:31 -0700
From:	Jesse Barnes <jbarnes@...tuousgeek.org>
To:	Thomas Gleixner <tglx@...utronix.de>
Cc:	LKML <linux-kernel@...r.kernel.org>,
	Andrew Morton <akpm@...ux-foundation.org>,
	Ingo Molnar <mingo@...e.hu>,
	Peter Zijlstra <peterz@...radead.org>,
	Christoph Hellwig <hch@...radead.org>,
	linux-pci@...r.kernel.org
Subject: Re: [patch 12/30] ibmphp-hpc: semaphore cleanup

On Tue, 07 Sep 2010 14:32:38 -0000
Thomas Gleixner <tglx@...utronix.de> wrote:

> Get rid of init_MUTEX[_LOCKED]() and use sema_init() instead.
> 
> Signed-off-by: Thomas Gleixner <tglx@...utronix.de>
> Cc: Jesse Barnes <jbarnes@...tuousgeek.org>
> Cc: linux-pci@...r.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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ