| Date | Sun, 26 Jul 2009 08:18:06 -0000 | From | Thomas Gleixner <> | Subject | [Patch RFC 12/37] ibmphp-hpc: semaphore cleanup |
| |
The usage of this "mutex"es is non obvious and probably a completion in some places. Make them semaphores.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Cc: Greg Kroah-Hartman <gregkh@suse.de> --- drivers/pci/hotplug/ibmphp_hpc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
Index: linux-2.6-tip/drivers/pci/hotplug/ibmphp_hpc.c =================================================================== --- linux-2.6-tip.orig/drivers/pci/hotplug/ibmphp_hpc.c +++ linux-2.6-tip/drivers/pci/hotplug/ibmphp_hpc.c @@ -132,8 +132,8 @@ void __init ibmphp_hpc_initvars (void) debug ("%s - Entry\n", __func__); mutex_init(&sem_hpcaccess); - init_MUTEX (&semOperations); - init_MUTEX_LOCKED (&sem_exit); + semaphore_init(&semOperations); + semaphore_init_locked(&sem_exit); to_debug = 0; debug ("%s - Exit\n", __func__);
|