]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
Bluetooth: optimize barrier usage for Rmw atomics
authorDavidlohr Bueso <dave@stgolabs.net>
Wed, 29 Jan 2020 18:10:41 +0000 (10:10 -0800)
committerMarcel Holtmann <marcel@holtmann.org>
Wed, 29 Jan 2020 18:50:44 +0000 (19:50 +0100)
commitfe66483156050f4eb63c4a1988f3b439e6c9ff2a
tree4dcdf4da5fe67f3fb5b350be6b228798351485c0
parent6c08fc896b60893c5d673764b0668015d76df462
Bluetooth: optimize barrier usage for Rmw atomics

Use smp_mb__before_atomic() instead of smp_mb() and avoid the
unnecessary barrier for non LL/SC architectures, such as x86.

Signed-off-by: Davidlohr Bueso <dbueso@suse.de>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/hidp/core.c