aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tools
diff options
context:
space:
mode:
authorDavidlohr Bueso <dave@stgolabs.net>2019-11-01 13:00:04 -0700
committerSasha Levin <sashal@kernel.org>2019-11-21 20:10:45 -0500
commit8aea7f82153d6f292add3eb4bd7ba8edcae5c7f7 (patch)
tree244565444f8607800b64948edd97ccf12a9e2d7d /tools
parentdrivers: iommu: hyperv: Make HYPERV_IOMMU only available on x86 (diff)
downloadwireguard-linux-8aea7f82153d6f292add3eb4bd7ba8edcae5c7f7.tar.xz
wireguard-linux-8aea7f82153d6f292add3eb4bd7ba8edcae5c7f7.zip
drivers/hv: Replace binary semaphore with mutex
At a slight footprint cost (24 vs 32 bytes), mutexes are more optimal than semaphores; it's also a nicer interface for mutual exclusion, which is why they are encouraged over binary semaphores, when possible. Replace the hyperv_mmio_lock, its semantics implies traditional lock ownership; that is, the lock owner is the same for both lock/unlock operations. Therefore it is safe to convert. Signed-off-by: Davidlohr Bueso <dbueso@suse.de> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions