PCI: ibmphp: Turn semaphores into completions or mutexes
authorArnd Bergmann <arnd@arndb.de>
Mon, 10 Dec 2018 21:49:10 +0000 (22:49 +0100)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 29 Jan 2019 23:15:36 +0000 (17:15 -0600)
commit2a727f6091372231281efaa8a5f56ee79509fd83
tree8b4b8cf9043cb82cb0b1363d676d4d45708be7a8
parent25bd879ec16ad3b83a5b1c3f16faa55e696bfccb
PCI: ibmphp: Turn semaphores into completions or mutexes

The sem_exit variable is conceptually a completion, so it should be called
that.

Similarly, the semOperations semaphore is a simple mutex, and can be
changed into that, respectively.

With both converted, the ibmphp_hpc_initvars() function is no longer used
and can be removed.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/hotplug/ibmphp.h
drivers/pci/hotplug/ibmphp_core.c
drivers/pci/hotplug/ibmphp_hpc.c