diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2009-07-28 04:09:09 -0400 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2009-07-28 04:09:09 -0400 |
commit | 43b8515cdbf6f018619bf45c6feeed12ee63dbdc (patch) | |
tree | db0b98d5272872cd195b6738d92b2acdec9b68b6 /drivers/pci/hotplug/ibmphp_hpc.c | |
parent | b6e47e970eff62e1559c6173af3cc8a7c68c19ea (diff) |
ibmphp_hpc: Convert to anon_semaphore
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'drivers/pci/hotplug/ibmphp_hpc.c')
-rw-r--r-- | drivers/pci/hotplug/ibmphp_hpc.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/pci/hotplug/ibmphp_hpc.c b/drivers/pci/hotplug/ibmphp_hpc.c index 19e36fac0543..d120da689819 100644 --- a/drivers/pci/hotplug/ibmphp_hpc.c +++ b/drivers/pci/hotplug/ibmphp_hpc.c | |||
@@ -104,7 +104,7 @@ static int to_debug = 0; | |||
104 | static struct mutex sem_hpcaccess; // lock access to HPC | 104 | static struct mutex sem_hpcaccess; // lock access to HPC |
105 | static struct semaphore semOperations; // lock all operations and | 105 | static struct semaphore semOperations; // lock all operations and |
106 | // access to data structures | 106 | // access to data structures |
107 | static struct semaphore sem_exit; // make sure polling thread goes away | 107 | static struct anon_semaphore sem_exit; // make sure polling thread goes away |
108 | static struct task_struct *ibmphp_poll_thread; | 108 | static struct task_struct *ibmphp_poll_thread; |
109 | //---------------------------------------------------------------------------- | 109 | //---------------------------------------------------------------------------- |
110 | // local function prototypes | 110 | // local function prototypes |
@@ -133,7 +133,7 @@ void __init ibmphp_hpc_initvars (void) | |||
133 | 133 | ||
134 | mutex_init(&sem_hpcaccess); | 134 | mutex_init(&sem_hpcaccess); |
135 | semaphore_init(&semOperations); | 135 | semaphore_init(&semOperations); |
136 | semaphore_init_locked(&sem_exit); | 136 | anon_semaphore_init_locked(&sem_exit); |
137 | to_debug = 0; | 137 | to_debug = 0; |
138 | 138 | ||
139 | debug ("%s - Exit\n", __func__); | 139 | debug ("%s - Exit\n", __func__); |
@@ -906,7 +906,7 @@ static int poll_hpc(void *data) | |||
906 | /* sleep for a short time just for good measure */ | 906 | /* sleep for a short time just for good measure */ |
907 | msleep(100); | 907 | msleep(100); |
908 | } | 908 | } |
909 | up (&sem_exit); | 909 | anon_up (&sem_exit); |
910 | debug ("%s - Exit\n", __func__); | 910 | debug ("%s - Exit\n", __func__); |
911 | return 0; | 911 | return 0; |
912 | } | 912 | } |
@@ -1076,7 +1076,7 @@ void __exit ibmphp_hpc_stop_poll_thread (void) | |||
1076 | 1076 | ||
1077 | // wait for poll thread to exit | 1077 | // wait for poll thread to exit |
1078 | debug ("before sem_exit down \n"); | 1078 | debug ("before sem_exit down \n"); |
1079 | down (&sem_exit); | 1079 | anon_down (&sem_exit); |
1080 | debug ("after sem_exit down \n"); | 1080 | debug ("after sem_exit down \n"); |
1081 | 1081 | ||
1082 | // cleanup | 1082 | // cleanup |
@@ -1085,7 +1085,7 @@ void __exit ibmphp_hpc_stop_poll_thread (void) | |||
1085 | debug ("after free_hpc_access \n"); | 1085 | debug ("after free_hpc_access \n"); |
1086 | ibmphp_unlock_operations (); | 1086 | ibmphp_unlock_operations (); |
1087 | debug ("after unlock operations \n"); | 1087 | debug ("after unlock operations \n"); |
1088 | up (&sem_exit); | 1088 | anon_up (&sem_exit); |
1089 | debug ("after sem exit up\n"); | 1089 | debug ("after sem exit up\n"); |
1090 | 1090 | ||
1091 | debug ("%s - Exit\n", __func__); | 1091 | debug ("%s - Exit\n", __func__); |