summaryrefslogtreecommitdiff
path: root/include/linux/stackprotector.h
diff options
context:
space:
mode:
authorKsenija Stanojevic <ksenija.stanojevic@gmail.com>2015-10-02 23:04:22 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-10-04 11:32:56 +0300
commit4e719935ea07eae2b9674c9578e8941601e4380d (patch)
treee9bcedd2c63cbadd1d744c056789b4f5b065d0c3 /include/linux/stackprotector.h
parent851f7c0e62dc564bf99e295b3c498d3d96a73b4a (diff)
downloadlinux-4e719935ea07eae2b9674c9578e8941601e4380d.tar.xz
Staging: comedi: Use mutex instead of semaphore in usbduxsigma.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/stackprotector.h')
0 files changed, 0 insertions, 0 deletions