summaryrefslogtreecommitdiff
path: root/include/linux/patchkey.h
diff options
context:
space:
mode:
authorKsenija Stanojevic <ksenija.stanojevic@gmail.com>2015-10-02 23:09:43 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-10-04 11:32:56 +0300
commit5a731c70bc79d3d41f37d9bf4ab4d549333bff37 (patch)
treef456740df56159ee32cf052e4a27de9fd8cd1f90 /include/linux/patchkey.h
parent27a90695e02759ccab58ca610af4f8ed79d8a35c (diff)
downloadlinux-5a731c70bc79d3d41f37d9bf4ab4d549333bff37.tar.xz
Staging: comedi: Use mutex instead of semaphore in ni_usb6501.c
Replace binary semaphore with mutex because mutex gives better performance. This change is safe because the thread that decrements the value of semaphore is also the one that increments it, and acts like a mutex where owner of the lock is the only one that can release the lock. Signed-off-by: Ksenija Stanojevic <ksenija.stanojevic@gmail.com> Reviewed-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/patchkey.h')
0 files changed, 0 insertions, 0 deletions