aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci/hotplug/ibmphp_hpc.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/pci/hotplug/ibmphp_hpc.c')
-rw-r--r--drivers/pci/hotplug/ibmphp_hpc.c10
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;
104static struct mutex sem_hpcaccess; // lock access to HPC 104static struct mutex sem_hpcaccess; // lock access to HPC
105static struct semaphore semOperations; // lock all operations and 105static struct semaphore semOperations; // lock all operations and
106 // access to data structures 106 // access to data structures
107static struct semaphore sem_exit; // make sure polling thread goes away 107static struct anon_semaphore sem_exit; // make sure polling thread goes away
108static struct task_struct *ibmphp_poll_thread; 108static 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__);