From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753279AbZGZIYX (ORCPT ); Sun, 26 Jul 2009 04:24:23 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751493AbZGZIYT (ORCPT ); Sun, 26 Jul 2009 04:24:19 -0400 Received: from www.tglx.de ([62.245.132.106]:34128 "EHLO www.tglx.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752903AbZGZIYQ (ORCPT ); Sun, 26 Jul 2009 04:24:16 -0400 Message-Id: <20090726081554.817021042@linutronix.de> User-Agent: quilt/0.47-1 Date: Sun, 26 Jul 2009 08:18:06 -0000 From: Thomas Gleixner To: LKML Cc: Andrew Morton , Ingo Molnar , Peter Zijlstra , Greg Kroah-Hartman Subject: [Patch RFC 12/37] ibmphp-hpc: semaphore cleanup References: <20090726081459.455111897@linutronix.de> Content-Disposition: inline; filename=driver-pci-hotplug-ibmphp-hpc-sema-share-cleanup.patch Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The usage of this "mutex"es is non obvious and probably a completion in some places. Make them semaphores. Signed-off-by: Thomas Gleixner Cc: Greg Kroah-Hartman --- 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__);