summaryrefslogtreecommitdiff
path: root/drivers/bluetooth/hci_bcm.c
diff options
context:
space:
mode:
authorFrederic Danis <frederic.danis@linux.intel.com>2015-09-23 18:18:10 +0200
committerMarcel Holtmann <marcel@holtmann.org>2015-09-24 16:25:44 +0200
commit7649faff1cfe4f76dabf78cd53d659d39f65b3c1 (patch)
tree6a7c94c698155ec951247af76fce02b9b98c629e /drivers/bluetooth/hci_bcm.c
parentb7a622a249736b36c0bf4c3f986ed431281d5e98 (diff)
Bluetooth: Remove useless rx_lock spinlock
rx_lock spinlock is only used in hci_uart_tty_receive() which is the receive_buf ldisc callback. hci_uart_tty_receive() is protected from re-entrance by its only caller (flush_to_ldisc() in drivers/tty/tty_buffer.c) which held a mutex (buf->lock) for this section. This lock allows "safe use of the line discipline's receive_buf() method by excluding the buffer work and any pending flush from using the flip buffer." (comments from tty_buffer_lock_exclusive() in drivers/tty/tty_buffer.c) So, no need to double protect this resource with rx_lock. Signed-off-by: Frederic Danis <frederic.danis@linux.intel.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'drivers/bluetooth/hci_bcm.c')
0 files changed, 0 insertions, 0 deletions