mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-16 05:50:19 +00:00
PCI hotplug: ibmphp-hpc: semaphore cleanup
Get rid of init_MUTEX[_LOCKED]() and use sema_init() instead. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
This commit is contained in:
parent
50c1126ee1
commit
5a37f1381f
@ -133,8 +133,8 @@ void __init ibmphp_hpc_initvars (void)
|
|||||||
debug ("%s - Entry\n", __func__);
|
debug ("%s - Entry\n", __func__);
|
||||||
|
|
||||||
mutex_init(&sem_hpcaccess);
|
mutex_init(&sem_hpcaccess);
|
||||||
init_MUTEX (&semOperations);
|
sema_init(&semOperations, 1);
|
||||||
init_MUTEX_LOCKED (&sem_exit);
|
sema_init(&sem_exit, 0);
|
||||||
to_debug = 0;
|
to_debug = 0;
|
||||||
|
|
||||||
debug ("%s - Exit\n", __func__);
|
debug ("%s - Exit\n", __func__);
|
||||||
|
Loading…
Reference in New Issue
Block a user